help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Variable that can be set only through customize


From: Julien Cubizolles
Subject: Re: Variable that can be set only through customize
Date: Fri, 30 Aug 2013 17:37:38 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

Drew Adams <drew.adams@oracle.com> writes:

>> 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Ā ?

> 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.

Thanks for this very thorough answer.

> 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'.

That's what I had settled on.

Julien.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]