[Top][All Lists]

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

Re: Possible defvar bug

From: Tassilo Horn
Subject: Re: Possible defvar bug
Date: Mon, 18 Feb 2013 15:58:50 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Jambunathan K <address@hidden> writes:

Hi Jambunathan,

> ,----  C-h f
> | The optional argument INITVALUE is evaluated, and used to set SYMBOL,
> | only if SYMBOL's value is void.  If SYMBOL is buffer-local, its
> | default value is what is set; buffer-local values are not affected.
> | If INITVALUE is missing, SYMBOL's value is not set.
> | 
> | If SYMBOL has a local binding, then this form affects the local
> | binding.  This is usually not what you want.  Thus, if you need to
> | load a file defining variables, with this form or with `defconst' or
> | `defcustom', you should always load that file _outside_ any bindings
> | for these variables.  (`defconst' and `defcustom' behave similarly in
> | this respect.)
> `----

Oh, I'd say the "Thus, ..." sentence makes it pretty clear that I
shouldn't be doing what I've done.  Thanks for the hint.

I've fixed the problem now in AUCTeX.


reply via email to

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