From: Richard M. Stallman Date: Sat, 23 Jun 2001 16:09:28 +0000 (+0000) Subject: (Major Mode Conventions): Major modes should not change RET. X-Git-Tag: emacs-pretest-21.0.104~174 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c2e903c04fa59b99a53a73937cd38758896d62ad;p=emacs.git (Major Mode Conventions): Major modes should not change RET. --- diff --git a/lispref/modes.texi b/lispref/modes.texi index 5d4f3bb5806..9f41e024135 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi @@ -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