diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2019-07-08 22:32:36 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2019-07-08 22:32:43 +0200 |
commit | ae87b76fb25025cf8631ee5ca6120aff8802943b (patch) | |
tree | fb807d21ef81c1ba7539191f2ce5551ecbb99d6f | |
parent | 8961c6b9726d5c77c0271f2fce18ffac164cbfbb (diff) | |
download | emacs-ae87b76fb25025cf8631ee5ca6120aff8802943b.tar.gz |
Remove mention of :group in define-minor-mode info
* doc/lispref/modes.texi (Defining Minor Modes): The :group stuff
in the example and documentation isn't correct since this is not a
global mode and `hunger-mode' therefore isn't customizable
(bug#36501).
-rw-r--r-- | doc/lispref/modes.texi | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index f7fb9a4417d..d12f2414245 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi @@ -1752,8 +1752,7 @@ See the command \\[hungry-electric-delete]." ;; The indicator for the mode line. " Hungry" ;; The minor mode bindings. - '(([C-backspace] . hungry-electric-delete)) - :group 'hunger) + '(([C-backspace] . hungry-electric-delete))) @end smallexample @noindent @@ -1762,9 +1761,8 @@ This defines a minor mode named ``Hungry mode'', a command named which indicates whether the mode is enabled, and a variable named @code{hungry-mode-map} which holds the keymap that is active when the mode is enabled. It initializes the keymap with a key binding for -@kbd{C-@key{DEL}}. It puts the variable @code{hungry-mode} into -custom group @code{hunger}. There are no @var{body} forms---many -minor modes don't need any. +@kbd{C-@key{DEL}}. There are no @var{body} forms---many minor modes +don't need any. Here's an equivalent way to write it: @@ -1782,8 +1780,7 @@ minor modes don't need any. ([C-M-backspace] . (lambda () (interactive) - (hungry-electric-delete t)))) - :group 'hunger) + (hungry-electric-delete t))))) @end smallexample @defmac define-globalized-minor-mode global-mode mode turn-on keyword-args@dots{} |