summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2019-07-08 22:32:36 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-07-08 22:32:43 +0200
commitae87b76fb25025cf8631ee5ca6120aff8802943b (patch)
treefb807d21ef81c1ba7539191f2ce5551ecbb99d6f
parent8961c6b9726d5c77c0271f2fce18ffac164cbfbb (diff)
downloademacs-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.texi11
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{}