all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* `customize-customized' and mode variable of a minor mode
@ 2007-04-06 18:10 Drew Adams
  2007-04-06 19:32 ` Lennart Borgman (gmail)
  2007-04-07 12:40 ` Richard Stallman
  0 siblings, 2 replies; 7+ messages in thread
From: Drew Adams @ 2007-04-06 18:10 UTC (permalink / raw)
  To: Emacs-Devel

`define-minor-mode' defines a defcustom, not a defvar, for the mode
variable. That seems like a good thing. However, if the mode has been
toggled, then `customize-customized' recognizes this variable's value as
having changed.

This can be inconvenient. Users should be able to use `customize-customized'
to check for variables that they have changed and might want to save. I use
`customize-customized' (tweaked so it always returns t) on
`kill-emacs-query-functions', for instance, to remind me to save changes. A
mode variable change via toggling is not usually a change users want to
save.

I'm not sure what a good way to avoid this annoyance would be. Perhaps
`customize-customized' should reflect a change in a mode variable only if
the user changes the value via Customize? That would probably mean making
the toggling code tell Customize to ignore the change.

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

end of thread, other threads:[~2007-04-07 12:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-06 18:10 `customize-customized' and mode variable of a minor mode Drew Adams
2007-04-06 19:32 ` Lennart Borgman (gmail)
2007-04-06 19:48   ` Drew Adams
2007-04-06 19:59     ` Lennart Borgman (gmail)
2007-04-06 21:14       ` Drew Adams
2007-04-06 21:43         ` Lennart Borgman (gmail)
2007-04-07 12:40 ` Richard Stallman

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.