all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "Emacs-Devel" <emacs-devel@gnu.org>
Subject: RE: `customize-customized' and mode variable of a minor mode
Date: Fri, 6 Apr 2007 12:48:51 -0700	[thread overview]
Message-ID: <EIENLHALHGIMHGDOLMIMGEHLDAAA.drew.adams@oracle.com> (raw)
In-Reply-To: <4616A039.4060006@gmail.com>

> > `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 do not follow you here. I do not know if it matters, but it is only
> minor modes that are global that shows up in `customize-customized'.

OK, then what I suggested applies only to global minor modes.

> For what reasons should not users want to save them?

Toggling a mode changes the value of the mode variable. Why would a user
want to save that new value? You might toggle a (global) minor mode several
times during an Emacs session. Turning the mode on and off doesn't imply
that you want to change the saved value. I don't see a use case for that.

  reply	other threads:[~2007-04-06 19:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=EIENLHALHGIMHGDOLMIMGEHLDAAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.