[Top][All Lists]

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

Re[2]: ill-advised changes [was key bindings in hideshow.el]

From: Eric M. Ludlam
Subject: Re[2]: ill-advised changes [was key bindings in hideshow.el]
Date: Thu, 1 Feb 2001 07:36:42 -0500

>>> Eli Zaretskii <address@hidden> seems to think that:
>On Thu, 1 Feb 2001, thi wrote:
>> anyway, do you have any suggestions on how to resolve minor mode
>> keybindings that conflict w/ those of a major mode?  i understand that
>> some people don't want to think about or talk about this topic at this
>> point -- that's fine; they are welcome to archive and revisit later like
>> anyone else on the list.  perhaps you could provide a pointer to
>> previous discussion or a policy/convention/faq blurb somewhere?
>I'm not aware of any policy (except for C-c being reserved for the 
>users).  Perhaps someone else could help.
>Failing that, we could try to define some guidelines that would be in 
>effect from now on.
  [ ... ]

I'm wandering into this conversation a little late.  The answers to
this particular question are well known!

The Emacs Lisp manual says that C-c <character> is reserved for users.
C-c C-<character> for major modes, and C-c <punctuation> is reserved
for minor modes.

Here are some relevant passages:

-------- Keymaps and Minor Modes ------------
   The key sequences bound in a minor mode should consist of `C-c'
followed by a punctuation character *other than* `{', `}', `<', `>',
`:' or `;'.  (Those few punctuation characters are reserved for major

-------- Major Mode Conventions -------------
   * The key sequences bound in a major mode keymap should usually
     start with `C-c', followed by a control character, a digit, or `{',
     `}', `<', `>', `:' or `;'.  The other punctuation characters are
     reserved for minor modes, and ordinary letters are reserved for

Ta Da!


          Eric Ludlam:                 address@hidden, address@hidden
   Home: www.ultranet.com/~zappo            Siege: www.siege-engine.com
Emacs: www.ultranet.com/~zappo/fsf.shtml          GNU: www.gnu.org

reply via email to

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