summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLute Kamstra <lute@gnu.org>2005-05-12 13:20:56 +0000
committerLute Kamstra <lute@gnu.org>2005-05-12 13:20:56 +0000
commit28e7aba4fd2bc5e3178ce4a4358722a327808538 (patch)
tree62b6a72feebe4cb1f5a44982a4ae5b4301fcbbbc
parentd4fb185de92d5c4a27e7b15f94217697eca32cda (diff)
downloademacs-28e7aba4fd2bc5e3178ce4a4358722a327808538.tar.gz
emacs-28e7aba4fd2bc5e3178ce4a4358722a327808538.tar.bz2
emacs-28e7aba4fd2bc5e3178ce4a4358722a327808538.zip
(Generic Modes): Update.
(Major Modes): Refer to node "Generic Modes".
-rw-r--r--lispref/modes.texi18
1 files changed, 4 insertions, 14 deletions
diff --git a/lispref/modes.texi b/lispref/modes.texi
index 12c4493b36f..4e6085566c4 100644
--- a/lispref/modes.texi
+++ b/lispref/modes.texi
@@ -71,10 +71,9 @@ 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.
-@findex define-generic-mode
For a very simple programming language major mode that handles
-comments and fontification, you can use @code{define-generic-mode}
-in @file{generic.el}.
+comments and fontification, you can use @code{define-generic-mode}.
+@xref{Generic Modes}.
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
@@ -873,7 +872,7 @@ configuration files. To define a generic mode, use the macro
@code{define-generic-mode}. See the file @file{generic-x.el} for some
examples of the use of @code{define-generic-mode}.
-@defmac define-generic-mode mode comment-list keyword-list font-lock-list auto-mode-list function-list &optional docstring &rest custom-keyword-args
+@defmac define-generic-mode mode comment-list keyword-list font-lock-list auto-mode-list function-list &optional docstring
This macro creates a new generic mode. The argument @var{mode} (an
unquoted symbol) is the major mode command. The optional argument
@var{docstring} is the documentation for the mode command. If you do
@@ -902,16 +901,7 @@ when Emacs runs the macro expansion.
@var{function-list} is a list of functions to call to do some
additional setup. The mode command calls these functions just before
-it runs the mode hook.
-
-The optional @var{custom-keyword-args} are pairs of keywords and
-values to include in the generated @code{defcustom} form for the mode
-hook variable @code{@var{mode}-hook}. The default value for the
-@samp{:group} keyword is @var{mode} with the final @samp{-mode} (if
-any) removed. Don't use this default group name unless you have
-written a @code{defgroup} to define that group properly (@pxref{Group
-Definitions}). You can specify keyword arguments without specifying a
-docstring.
+it runs the mode hook variable @code{@var{mode}-hook}.
@end defmac
@node Mode Hooks