aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-06-23 16:09:28 +0000
committerRichard M. Stallman2001-06-23 16:09:28 +0000
commitc2e903c04fa59b99a53a73937cd38758896d62ad (patch)
tree5fd3d393f2161d0a0acadab1fecee012dd9d29be
parent456ced1fb4e1af9b45dad161f57405912fded247 (diff)
downloademacs-c2e903c04fa59b99a53a73937cd38758896d62ad.tar.gz
emacs-c2e903c04fa59b99a53a73937cd38758896d62ad.zip
(Major Mode Conventions): Major modes should not change RET.
-rw-r--r--lispref/modes.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/lispref/modes.texi b/lispref/modes.texi
index 5d4f3bb5806..9f41e024135 100644
--- a/lispref/modes.texi
+++ b/lispref/modes.texi
@@ -174,6 +174,12 @@ text can reasonably redefine letters and other printing characters as
174editing commands. Dired and Rmail both do this. 174editing commands. Dired and Rmail both do this.
175 175
176@item 176@item
177Major modes must not define @key{RET} to do anything other than insert
178a newline. The command to insert a newline and then indent is
179@kbd{C-j}. These conventions are supposed to be uniform for all
180modes; please keep them that way.
181
182@item
177@cindex syntax tables in modes 183@cindex syntax tables in modes
178The mode may have its own syntax table or may share one with other 184The mode may have its own syntax table or may share one with other
179related modes. If it has its own syntax table, it should store this in 185related modes. If it has its own syntax table, it should store this in