* 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
* bug#43869: 28.0.50; reference to non existent variable in manual sect 23.3.3 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 1 sibling, 0 replies; 4+ messages in thread From: Eli Zaretskii @ 2020-10-08 19:13 UTC (permalink / raw) To: mvar; +Cc: 43869 > From: mvar <mvar.40k@gmail.com> > Date: Thu, 8 Oct 2020 22:01:09 +0300 > > 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. That's because 'define-minor-mode' defines that map automatically. ^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#43869: 28.0.50; reference to non existent variable in manual sect 23.3.3 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 1 sibling, 1 reply; 4+ messages in thread From: mvar @ 2020-10-08 19:29 UTC (permalink / raw) To: eliz; +Cc: 43869 reading the page i was under the impression that it needs to be defined separately as a variable and then passed in the minor mode definition as a parameter.Looks like i missed the italics on the "mode"-map at the beginning of the page: If keymap is a keymap or an alist, this also defines the variable mode-map. *sigh* you may close this, sorry for the trouble ^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#43869: 28.0.50; reference to non existent variable in manual sect 23.3.3 2020-10-08 19:29 ` mvar @ 2020-10-09 4:29 ` Lars Ingebrigtsen 0 siblings, 0 replies; 4+ messages in thread From: Lars Ingebrigtsen @ 2020-10-09 4:29 UTC (permalink / raw) To: mvar; +Cc: 43869 mvar <mvar.40k@gmail.com> writes: > *sigh* you may close this, sorry for the trouble No trouble. :-) Closing. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no ^ 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.