all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Stefan Monnier'" <monnier@iro.umontreal.ca>, <help-gnu-emacs@gnu.org>
Subject: RE: custom: how do I augment an option?
Date: Thu, 6 Sep 2012 06:37:05 -0700	[thread overview]
Message-ID: <F7C79DF8DF5B42D0A2C1CECC7CF44F50@us.oracle.com> (raw)
In-Reply-To: <jwv8vcnuwl5.fsf-monnier+gnu.emacs.help@gnu.org>

> 3- submit a patch for Customize which lets the user specify
>    not just a new value but a change (like a "diff") to the
>    default value. For lists representing sets, a way for the
>    user to specify elements to add and elements to remove
>    would be great.  For lists where order matters, the user
>    should additionally have some control over where to add
>    elements.
> Point 3 would be *really* welcome.

+1

One reason this would be helpful would be simplicity of expression.  But
another, quite important reason IMO, would be some ability to better handle
updates of the default value, e.g. in a new version of the given defcustom.

For example, an option value that is a list of mappings of some kind might have
additional mappings by default in a newer version of the library.  If you have
already customized the option then you might not learn of the added
possibilities.  I see this fairly often.  You've customized based on the old
default value, not the new one.  Given some awareness of the change, you might
now want to customize the option differently.

But this problem of a changed default value is presented even for non-collection
options.  It would be good to have a simple (optional) way for users of a
library to be alerted that the default value of a given option or face that they
have customized has changed.

E.g., if the default value of `foo' was 3, you have customized it to 42, and the
default value is now nil, be able to be alerted to that default change.




  reply	other threads:[~2012-09-06 13:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-05 17:56 custom: how do I augment an option? Sam Steingold
2012-09-05 18:27 ` Jambunathan K
2012-09-05 19:18 ` Sam Steingold
2012-09-05 20:04   ` Drew Adams
2012-09-05 20:45     ` Sam Steingold
2012-09-05 21:15       ` Drew Adams
2012-09-05 21:27         ` Drew Adams
     [not found] ` <mailman.8164.1346872698.855.help-gnu-emacs@gnu.org>
2012-09-06 13:14   ` Stefan Monnier
2012-09-06 13:37     ` Drew Adams [this message]
2012-09-06 18:20     ` Sam Steingold
2012-10-26 18:21       ` Stefan Monnier

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=F7C79DF8DF5B42D0A2C1CECC7CF44F50@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.