diff options
| author | Lars Ingebrigtsen | 2019-07-08 22:32:36 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-07-08 22:32:43 +0200 |
| commit | ae87b76fb25025cf8631ee5ca6120aff8802943b (patch) | |
| tree | fb807d21ef81c1ba7539191f2ce5551ecbb99d6f | |
| parent | 8961c6b9726d5c77c0271f2fce18ffac164cbfbb (diff) | |
| download | emacs-ae87b76fb25025cf8631ee5ca6120aff8802943b.tar.gz emacs-ae87b76fb25025cf8631ee5ca6120aff8802943b.zip | |
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]." | |||
| 1752 | ;; The indicator for the mode line. | 1752 | ;; The indicator for the mode line. |
| 1753 | " Hungry" | 1753 | " Hungry" |
| 1754 | ;; The minor mode bindings. | 1754 | ;; The minor mode bindings. |
| 1755 | '(([C-backspace] . hungry-electric-delete)) | 1755 | '(([C-backspace] . hungry-electric-delete))) |
| 1756 | :group 'hunger) | ||
| 1757 | @end smallexample | 1756 | @end smallexample |
| 1758 | 1757 | ||
| 1759 | @noindent | 1758 | @noindent |
| @@ -1762,9 +1761,8 @@ This defines a minor mode named ``Hungry mode'', a command named | |||
| 1762 | which indicates whether the mode is enabled, and a variable named | 1761 | which indicates whether the mode is enabled, and a variable named |
| 1763 | @code{hungry-mode-map} which holds the keymap that is active when the | 1762 | @code{hungry-mode-map} which holds the keymap that is active when the |
| 1764 | mode is enabled. It initializes the keymap with a key binding for | 1763 | mode is enabled. It initializes the keymap with a key binding for |
| 1765 | @kbd{C-@key{DEL}}. It puts the variable @code{hungry-mode} into | 1764 | @kbd{C-@key{DEL}}. There are no @var{body} forms---many minor modes |
| 1766 | custom group @code{hunger}. There are no @var{body} forms---many | 1765 | don't need any. |
| 1767 | minor modes don't need any. | ||
| 1768 | 1766 | ||
| 1769 | Here's an equivalent way to write it: | 1767 | Here's an equivalent way to write it: |
| 1770 | 1768 | ||
| @@ -1782,8 +1780,7 @@ minor modes don't need any. | |||
| 1782 | ([C-M-backspace] | 1780 | ([C-M-backspace] |
| 1783 | . (lambda () | 1781 | . (lambda () |
| 1784 | (interactive) | 1782 | (interactive) |
| 1785 | (hungry-electric-delete t)))) | 1783 | (hungry-electric-delete t))))) |
| 1786 | :group 'hunger) | ||
| 1787 | @end smallexample | 1784 | @end smallexample |
| 1788 | 1785 | ||
| 1789 | @defmac define-globalized-minor-mode global-mode mode turn-on keyword-args@dots{} | 1786 | @defmac define-globalized-minor-mode global-mode mode turn-on keyword-args@dots{} |