Mercurial > emacs
comparison lispref/modes.texi @ 83260:25f02aeb20f4
Merged from miles@gnu.org--gnu-2005 (patch 27, 120-125)
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-120
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-121
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-122
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-123
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-124
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-125
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-27
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-300
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Wed, 23 Feb 2005 11:26:15 +0000 |
parents | 77336d5f9a37 |
children | d3a84cca7e73 |
comparison
equal
deleted
inserted
replaced
83259:cf4b5d1da82f | 83260:25f02aeb20f4 |
---|---|
1 @c -*-texinfo-*- | 1 @c -*-texinfo-*- |
2 @c This is part of the GNU Emacs Lisp Reference Manual. | 2 @c This is part of the GNU Emacs Lisp Reference Manual. |
3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2003, 2004 | 3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, |
4 @c Free Software Foundation, Inc. | 4 @c 2003, 2004, 2005 Free Software Foundation, Inc. |
5 @c See the file elisp.texi for copying conditions. | 5 @c See the file elisp.texi for copying conditions. |
6 @setfilename ../info/modes | 6 @setfilename ../info/modes |
7 @node Modes, Documentation, Keymaps, Top | 7 @node Modes, Documentation, Keymaps, Top |
8 @chapter Major and Minor Modes | 8 @chapter Major and Minor Modes |
9 @cindex mode | 9 @cindex mode |
1096 | 1096 |
1097 @node Defining Minor Modes | 1097 @node Defining Minor Modes |
1098 @subsection Defining Minor Modes | 1098 @subsection Defining Minor Modes |
1099 | 1099 |
1100 The macro @code{define-minor-mode} offers a convenient way of | 1100 The macro @code{define-minor-mode} offers a convenient way of |
1101 implementing a mode in one self-contained definition. It supports only | 1101 implementing a mode in one self-contained definition. |
1102 buffer-local minor modes, not global ones. | |
1103 | 1102 |
1104 @defmac define-minor-mode mode doc [init-value [lighter [keymap keyword-args... body...]]] | 1103 @defmac define-minor-mode mode doc [init-value [lighter [keymap keyword-args... body...]]] |
1105 @tindex define-minor-mode | 1104 @tindex define-minor-mode |
1106 This macro defines a new minor mode whose name is @var{mode} (a | 1105 This macro defines a new minor mode whose name is @var{mode} (a |
1107 symbol). It defines a command named @var{mode} to toggle the minor | 1106 symbol). It defines a command named @var{mode} to toggle the minor |