[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: editor for large xml files?

From: Andreas Roehler
Subject: Re: editor for large xml files?
Date: Wed, 17 Feb 2010 10:53:24 +0100
User-agent: Thunderbird (X11/20081227)

Tassilo Horn wrote:
> Andreas Roehler <address@hidden> writes:
> Hi Andreas,
>> As this style
>> (global-set-key [(control kp-divide)] 'My-Command)
>> or
>> (global-set-key [(control x)(c)] 'My-Other-Command)
>> is understood by all Emacsen, suggest to keep that, declaring the
>> other ones obsolete.
> Was there any discussion of declaring it obsolete?

Hi Tassilo,

don't know. Didn't intend to say it.

> IMO, the recommended style for making keybindings should be `kbd', which
> is available in Emacs, XEmacs, and SXEmacs.
> So your 2 definitions would become:
>   (global-set-key (kbd "<C-kp-divide>") 'My-Command)
>   (global-set-key (kbd "C-x c")         'My-Other-Command)
> That's quite easy to read and write (you can simply insert the string
> describe-key outputs as argument to `kbd'), and it hides how an
> implementation represents the key sequences internally.

Hmm, like the "control" and "meta" written out.

OTOH, may perfectly live with your suggestion.
Just saying: let's choose one and just one compatible form, declaring others 



> Bye,
> Tassilo

reply via email to

[Prev in Thread] Current Thread [Next in Thread]