From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: custom: how do I augment an option?
Date: Thu, 06 Sep 2012 09:14:55 -0400 [thread overview]
Message-ID: <jwv8vcnuwl5.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.8164.1346872698.855.help-gnu-emacs@gnu.org
> So, what is the official method?
There are 3 official methods:
1- forget about flexibility and just set the var to a constant value
that does not depend on the default value. That can be done from the GUI.
2- if you want to use actual code (instead of a mere constant), then
don't use Customize, and use something like the add-hook code you showed.
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.
Stefan
next prev parent reply other threads:[~2012-09-06 13:14 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 [this message]
2012-09-06 13:37 ` Drew Adams
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=jwv8vcnuwl5.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@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.