From: Lars Ingebrigtsen Date: Mon, 8 Jul 2019 20:32:36 +0000 (+0200) Subject: Remove mention of :group in define-minor-mode info X-Git-Tag: emacs-27.0.90~2053 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ae87b76fb25025cf8631ee5ca6120aff8802943b;p=emacs.git 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). --- 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{}