GNU bug report logs -
#41727
26.3; Doc of `define-minor-mode' and minor-mode commands
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Fri, 5 Jun 2020 20:40:01 UTC
Severity: wishlist
Found in version 26.3
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
For the (default) doc string of a minor mode,
I think something like this should take care of it.
Interactively, toggle the mode. But with a prefix arg, enable the
mode if the numeric value is positive, and disable it otherwise.
If called from Lisp, toggle the mode if the optional arg is 'toggle'.
Otherwise, handle it as the prefix arg: disable the mode if
`prefix-numeric-value' of the arg is non-positive, and enable it
otherwise. This implies that if the arg is nil or absent then enable
the mode.
___
Ideally, we would have a way to provide a custom doc
string that also included this info somehow.
Maybe the doc string of `define-minor-mode' could
show the default doc string and suggest that if you
provide your own doc string you include the same or
similar information, if appropriate.
(And it might generally be good if the Lisp info were
at the end of the doc string.)
This bug report was last modified 3 years and 236 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.