Mercurial > emacs
changeset 39793:1d5b7d31671f
Recommend the use of define-derived-mode (and nil argument).
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 12 Oct 2001 01:32:51 +0000 |
parents | 664c63b19441 |
children | 30c76f38ad7b |
files | lispref/modes.texi |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lispref/modes.texi Fri Oct 12 01:32:01 2001 +0000 +++ b/lispref/modes.texi Fri Oct 12 01:32:51 2001 +0000 @@ -60,9 +60,9 @@ definition is distinct from that of Text mode, but uses that of Text mode. Even if the new mode is not an obvious derivative of any other mode, -it can be convenient to define it as a derivative of -@code{fundamental-mode}, so that @code{define-derived-mode} can -automatically enforce the most important coding conventions for you. +it is convenient to use @code{define-derived-mode} with a @code{nil} +parent argument, since it automatically enforces the most important +coding conventions for you. Rmail Edit mode offers an example of changing the major mode temporarily for a buffer, so it can be edited in a different way (with