[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lispref/modes.texi [emacs-unicode-2]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/lispref/modes.texi [emacs-unicode-2] |
Date: |
Fri, 27 Aug 2004 06:28:43 -0400 |
Index: emacs/lispref/modes.texi
diff -c emacs/lispref/modes.texi:1.58.2.2 emacs/lispref/modes.texi:1.58.2.3
*** emacs/lispref/modes.texi:1.58.2.2 Mon Jun 28 07:28:50 2004
--- emacs/lispref/modes.texi Fri Aug 27 07:00:30 2004
***************
*** 188,203 ****
characters are reserved for minor modes, and ordinary letters are
reserved for users.
! It is reasonable for a major mode to rebind a key sequence with a
! standard meaning, if it implements a command that does ``the same job''
! in a way that fits the major mode better. For example, a major mode for
! editing a programming language might redefine @kbd{C-M-a} to ``move to
! the beginning of a function'' in a way that works better for that
! language.
!
! Major modes such as Dired or Rmail that do not allow self-insertion of
! text can reasonably redefine letters and other printing characters as
! editing commands. Dired and Rmail both do this.
@item
Major modes must not define @key{RET} to do anything other than insert
--- 188,211 ----
characters are reserved for minor modes, and ordinary letters are
reserved for users.
! A major mode can also rebind the keys @kbd{M-n}, @kbd{M-p} and
! @kbd{M-s}. The bindings for @kbd{M-n} and @kbd{M-p} should normally
! be some kind of ``moving forward and backward,'' but this does not
! necessarily mean cursor motion.
!
! It is legitimate for a major mode to rebind a standard key sequence if
! it provides a command that does ``the same job'' in a way better
! suited to the text this mode is used for. For example, a major mode
! for editing a programming language might redefine @kbd{C-M-a} to
! ``move to the beginning of a function'' in a way that works better for
! that language.
!
! It is also legitimate for a major mode to rebind a standard key
! sequence whose standard meaning is rarely useful in that mode. For
! instance, minibuffer modes rebind @kbd{M-r}, whose standard meaning is
! rarely of any use in the minibuffer. Major modes such as Dired or
! Rmail that do not allow self-insertion of text can reasonably redefine
! letters and other printing characters as special commands.
@item
Major modes must not define @key{RET} to do anything other than insert
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lispref/modes.texi [emacs-unicode-2],
Miles Bader <=