diff options
| author | Richard M. Stallman | 2001-06-23 16:09:28 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-06-23 16:09:28 +0000 |
| commit | c2e903c04fa59b99a53a73937cd38758896d62ad (patch) | |
| tree | 5fd3d393f2161d0a0acadab1fecee012dd9d29be | |
| parent | 456ced1fb4e1af9b45dad161f57405912fded247 (diff) | |
| download | emacs-c2e903c04fa59b99a53a73937cd38758896d62ad.tar.gz emacs-c2e903c04fa59b99a53a73937cd38758896d62ad.zip | |
(Major Mode Conventions): Major modes should not change RET.
| -rw-r--r-- | lispref/modes.texi | 6 |
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 | |||
| 174 | editing commands. Dired and Rmail both do this. | 174 | editing commands. Dired and Rmail both do this. |
| 175 | 175 | ||
| 176 | @item | 176 | @item |
| 177 | Major modes must not define @key{RET} to do anything other than insert | ||
| 178 | a newline. The command to insert a newline and then indent is | ||
| 179 | @kbd{C-j}. These conventions are supposed to be uniform for all | ||
| 180 | modes; please keep them that way. | ||
| 181 | |||
| 182 | @item | ||
| 177 | @cindex syntax tables in modes | 183 | @cindex syntax tables in modes |
| 178 | The mode may have its own syntax table or may share one with other | 184 | The mode may have its own syntax table or may share one with other |
| 179 | related modes. If it has its own syntax table, it should store this in | 185 | related modes. If it has its own syntax table, it should store this in |