GNU bug report logs -
#20462
25.0.50; A minor mode's doc string should say it is [local/global] a minor mode
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Wed, 29 Apr 2015 17:31:03 UTC
Severity: wishlist
Merged with 29497,
33912,
41884
Found in versions 25.0.50, 26.0.90, 27.0.50, 27.0.91
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> (define-globalized-minor-mode foo auto-fill-mode 'ignore)
> C-h foo
> Toggle Auto-Fill mode in all buffers.
>
> 1) It's a minor mode (you can't toggle a major mode, nor sensibly
> apply it to all buffers).
> 2) It's global ("all buffers").
> (define-minor-mode blah nil)
> C-f blah
> Toggle Blah mode on or off.
> 1) It's a minor mode (you can't toggle a major mode)
> 2) Since it does not say it affects all buffers, don't assume it
> does.
Irrelevant to this bug report. A command that toggles something,
including toggling a mode, is not necessarily a minor-mode command.
See, for example, the misnamed `use-hard-newlines' command of
bug #20464. It happens to be a minor-mode command. But with
that name it might just as well not have been. And there is
no way to tell from its doc string that it has anything to do
with a minor mode. `define-globalized-minor-mode' and
`define-minor-mode' should explicitly add something to the
doc string to make clear that the command is not just some
command that toggles. They should explicitly mention "minor mode".
This bug report was last modified 3 years and 325 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.