GNU bug report logs -
#30978
25.3; Suggestion: define-minor-mode should define mode-lighter variable
Previous Next
Reported by: Howard Melman <hmelman <at> gmail.com>
Date: Wed, 28 Mar 2018 20:13:02 UTC
Severity: wishlist
Tags: moreinfo, wontfix
Found in version 25.3
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> It's already pretty easy to just alter the lighters -- just say:
>
> (setcar (cdr (assoc 'foo-mode minor-mode-alist)) "whatever")
Manipulating minor-mode-alist is not that hard indeed; there are some
sources of hassle though:
(1) figuring out the name of the mode variable (e.g. auto-fill-function,
defining-kbd-macro);
(2) some modes seem not to add their variables to minor-mode-alist for
some reason (e.g. caps-lock-mode on GNU ELPA), so this recipe does
not work (neither does delight); one needs to fallback to
add-to-list.
Nothing too herculean, but I'm sure some users would appreciate a
built-in function to figure out this stuff for them.
(And IIUC, solving this with a function, rather than automatically
creating variables for each minor mode, would address your concern about
bloat, since any added bloat would be opt-in)
This bug report was last modified 3 years and 299 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.