From: Drew Adams <drew.adams@oracle.com>
To: Julien Cubizolles <j.cubizolles@free.fr>, help-gnu-emacs@gnu.org
Subject: RE: Variable that can be set only through customize
Date: Thu, 29 Aug 2013 10:04:08 -0700 (PDT) [thread overview]
Message-ID: <1e406524-3776-4e86-b759-075eda0dea9e@default> (raw)
In-Reply-To: <87ob8gcujn.fsf@free.fr>
> While configuring AUCTex, I came upon this variable
> LaTeX-math-abbrev-prefix that can only be set through customize. That's
> what the docstring says, and indeed I can't change its value using
> setq. What's the purpose of this limitation ? Is there a way to
> circumvent it ?
Someone else can speak more directly to your question. (I don't have the
AUCTex code etc.)
But in general it is good to keep in mind that Customize often does
additional things when you use it to set an option value. One important
thing it does is type-check the value to be assigned; it checks it against
the type specified in the `defcustom' that defines the option.
In addition, a `defcustom' can specify a `:set' operation, which is a
function that is invoked whenever the option gets set to a new value.
To set an option value programmatically, you will want to first check the
option definition - its `defcustom'. Once you understand that you will be
in a better position to know what you might need to do when setting the
value.
If you intend to set option values using Lisp, you will want to become
familiar with (at least) these Customize functions: `customize-set-value',
`customize-set-variable'.
next prev parent reply other threads:[~2013-08-29 17:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-29 16:48 Variable that can be set only through customize Julien Cubizolles
2013-08-29 17:04 ` Drew Adams [this message]
2013-08-30 15:37 ` Julien Cubizolles
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=1e406524-3776-4e86-b759-075eda0dea9e@default \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=j.cubizolles@free.fr \
/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.