# HG changeset patch # User Richard M. Stallman # Date 993312568 0 # Node ID 45d64a431eeabd4aaa41217a578cb5f4ac6a0b55 # Parent 05a836654c88521bf24635d8cbdc2b557475c65a (Major Mode Conventions): Major modes should not change RET. diff -r 05a836654c88 -r 45d64a431eea lispref/modes.texi --- a/lispref/modes.texi Sat Jun 23 16:08:32 2001 +0000 +++ b/lispref/modes.texi Sat Jun 23 16:09:28 2001 +0000 @@ -174,6 +174,12 @@ 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 related modes. If it has its own syntax table, it should store this in