emacs-devel
[Top][All Lists]
Advanced

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

Re: add-list local value


From: Juanma Barranquero
Subject: Re: add-list local value
Date: Wed, 12 Mar 2008 09:41:26 +0100

On Wed, Mar 12, 2008 at 3:18 AM, Lennart Borgman (gmail)
<address@hidden> wrote:

>  And if I have a local value and want to add to the global value with
>  add-to-list?

(with-temp-buffer (add-to-list 'my-variable 'my-value))

unless the variable is automatically buffer-local. If it is, I think
it would be uncommon to modify the global value (it would be more
logical to just set it up with defvar), but you can always skip the
`add-to-list' and assign to my-variable with setq-default.

 Juanma




reply via email to

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