all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#43869: 28.0.50; reference to non existent variable in manual sect 23.3.3
@ 2020-10-08 19:01 mvar
  2020-10-08 19:13 ` Eli Zaretskii
  2020-10-08 19:29 ` mvar
  0 siblings, 2 replies; 4+ messages in thread
From: mvar @ 2020-10-08 19:01 UTC (permalink / raw)
  To: 43869

in section 23.3.3 "Defining Minor Modes" of the emacs manual

https://www.gnu.org/software/emacs/manual/html_node/elisp/Defining-Minor-Modes.html#Defining-Minor-Modes

there's a reference to a variable "hungry-mode-map" that does not exist
anywhere in the page & provided example.

excerpt from the page:

Here is an example of using define-minor-mode:

(define-minor-mode hungry-mode
  "Toggle Hungry mode.
Interactively with no argument, this command toggles the mode.
A positive prefix argument enables the mode, any other prefix
argument disables it.  From Lisp, argument omitted or nil enables
the mode, `toggle' toggles the state.

When Hungry mode is enabled, the control delete key
gobbles all preceding whitespace except the last.
See the command \\[hungry-electric-delete]."
 ;; The initial value.
 nil
 ;; The indicator for the mode line.
 " Hungry"
 ;; The minor mode bindings.
 '(([C-backspace] . hungry-electric-delete)))

This defines a minor mode named “Hungry mode”, a command named hungry-
mode to toggle it,
a variable named hungry-mode which indicates whether the mode is
enabled, and a variable
named hungry-mode-map which holds the keymap that is active when the
mode is enabled. 





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-10-09  4:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-08 19:01 bug#43869: 28.0.50; reference to non existent variable in manual sect 23.3.3 mvar
2020-10-08 19:13 ` Eli Zaretskii
2020-10-08 19:29 ` mvar
2020-10-09  4:29   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.