]> git.eshelyaron.com Git - emacs.git/commitdiff
(Major Mode Conventions): Major modes should not change RET.
authorRichard M. Stallman <rms@gnu.org>
Sat, 23 Jun 2001 16:09:28 +0000 (16:09 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 23 Jun 2001 16:09:28 +0000 (16:09 +0000)
lispref/modes.texi

index 5d4f3bb58067c5485f666eea92b2f4280f3ad7b2..9f41e024135869b3afb157b5c799586f4b403e92 100644 (file)
@@ -173,6 +173,12 @@ 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
+a newline.  The command to insert a newline and then indent is
+@kbd{C-j}.  These conventions are supposed to be uniform for all
+modes; please keep them that way.
+
 @item
 @cindex syntax tables in modes
 The mode may have its own syntax table or may share one with other