emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master ae87b76: Remove mention of :group in define-minor-m


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master ae87b76: Remove mention of :group in define-minor-mode info
Date: Mon, 8 Jul 2019 16:34:06 -0400 (EDT)

branch: master
commit ae87b76fb25025cf8631ee5ca6120aff8802943b
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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).
---
 doc/lispref/modes.texi | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index f7fb9a4..d12f241 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{}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]