From c2e903c04fa59b99a53a73937cd38758896d62ad Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 23 Jun 2001 16:09:28 +0000 Subject: [PATCH] (Major Mode Conventions): Major modes should not change RET. --- lispref/modes.texi | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5