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

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

Re: re-loading an elisp file


From: PJ Weisberg
Subject: Re: re-loading an elisp file
Date: Sat, 5 Mar 2011 15:21:55 -0800

On Sat, Mar 5, 2011 at 2:17 PM, Tim X <timx@nospam.dev.null> wrote:

> The way I usually deal with this is to either reset the variable in the
> scratch buffer i.e.
>
> (setq var nil)
>
> then when I re-evaluate the buffer, var will be set if it is in a defvar
> statement.

Not true.  If the variable is set at all, even to nil, defvar respects
it and doesn't overwrite it with the default.  Otherwise putting
something like (setq flyspell-persistent-highlight nil) in your .emacs
file would have no effect.

The way to actually do that is:

(makunbound 'var)

-PJ



reply via email to

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