help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: .emacs key maps are overwritten by php-mode


From: Reiner Steib
Subject: Re: .emacs key maps are overwritten by php-mode
Date: Thu, 04 May 2006 21:50:22 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

On Thu, May 04 2006, Lennart Borgman wrote:

> Stefan Horomnea wrote:
>> (global-set-key [(control ?d)] 'kill-ring-save)
[...]
>   * Please do not define `C-c LETTER' as a key in Lisp programs.
>     Sequences consisting of `C-c' and a letter (either upper or lower
>     case) are reserved for users; they are the *only* sequences
>     reserved for users, so do not block them.
>
> So the php-mode you use does not follow this convention.

Huch?  C-d is not `C-c LETTER'.

The Emacs manual explains Stefan too (in the last sentence):

,----[ (info "(emacs)Keymaps") ]
|    As a user, you can redefine any key; but it is usually best to stick
| to key sequences that consist of `C-c' followed by a letter.  These
| keys are "reserved for users," so they won't conflict with any properly
| designed Emacs extension.  The function keys <F5> through <F9> are also
| reserved for users.  If you redefine some other key, your definition
| may be overridden by certain extensions or major modes which redefine
| the same key.
`----

This, as well as your quote from (info "(elisp)Coding Conventions")
was already present in Emacs 21.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


reply via email to

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