unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* `define-minor-mode' makes erroneous docstrings.
@ 2005-04-12  2:45 Luc Teirlinck
  2005-04-12  3:09 ` Luc Teirlinck
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Luc Teirlinck @ 2005-04-12  2:45 UTC (permalink / raw)


The docstrings provided by `define-minor-mode' are wrong for many
minor-mode variables.  They _automatically_ say that setting the
variable directly has no effect.  I believe that this is wrong for the
majority of minor modes.

For global minor modes, setting the variable buffer locally is often
useful, like for column-number-mode.  For local minor modes, you can
enable them globally by setting the default-value of the variable.

As an example here is what you get from `C-h v column-number-mode'.
It is definitely wrong, you can set it directly and buffer locally.
It works.

  column-number-mode's value is t
  Local in buffer *info*; global value is nil

  Non-nil if Column-Number mode is enabled.
  See the command `column-number-mode' for a description of this minor-mode.
  Setting this variable directly does not take effect;
  use either M-x customize or the function `column-number-mode'.

  You can customize this variable.

  Defined in `simple'.

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

end of thread, other threads:[~2005-04-13  2:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-12  2:45 `define-minor-mode' makes erroneous docstrings Luc Teirlinck
2005-04-12  3:09 ` Luc Teirlinck
2005-04-12  3:29   ` Luc Teirlinck
2005-04-12  3:57 ` Stefan Monnier
2005-04-12 17:04   ` Luc Teirlinck
2005-04-12 17:23 ` Richard Stallman
2005-04-13  2:33   ` Luc Teirlinck

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).