unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#36500: 26.2; Minor mode doc strings - say what the current mode-variable value is
@ 2019-07-04 15:19 Drew Adams
  2019-07-08 20:42 ` Lars Ingebrigtsen
  2021-06-22 14:07 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: Drew Adams @ 2019-07-04 15:19 UTC (permalink / raw)
  To: 36500

Apologies if this enhancement request has been proposed before.
It seems like it might have been, as it's a pretty obvious
possibility.

Suggestion:

Have the automatically provided part of a minor-mode doc string, from
`define-minor-mode' do the following (or at least some of it):

1. Mention the mode variable (typically the same name as the mode,
   but in any case the name is known to `define-minor-mode').
   (The doc string currently mentions the keymap, but not the var.)

2. Show the current value of the variable, just as we do for the keymap.
   If undefined so far then say so, just as we do for the keymap.

3. Say whether the variable is global (an option, customizable), or
   buffer-local.

4. Maybe mention that the variable is set/reset automatically when you
   toggle the mode.  If the var is global mention that you can set/reset
   it manually using Customize.

5. Any particularities, e.g. from using `:variable' should be taken into
   account, so the doc string is correct for all cases.



In GNU Emacs 26.2 (build 1, x86_64-w64-mingw32)
 of 2019-04-13
Repository revision: fd1b34bfba8f3f6298df47c8e10b61530426f749
Windowing system distributor `Microsoft Corp.', version 10.0.17134
Configured using:
 `configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''





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

end of thread, other threads:[~2021-06-22 15:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-04 15:19 bug#36500: 26.2; Minor mode doc strings - say what the current mode-variable value is Drew Adams
2019-07-08 20:42 ` Lars Ingebrigtsen
2019-07-08 21:26   ` Drew Adams
2021-06-22 14:07 ` Lars Ingebrigtsen
2021-06-22 15:10   ` bug#36500: [External] : " Drew Adams

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).