[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: re-loading an elisp file
From: |
Tim X |
Subject: |
Re: re-loading an elisp file |
Date: |
Sun, 06 Mar 2011 11:05:43 +1100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
PJ Weisberg <pj@irregularexpressions.net> writes:
> 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)
>
Your right - coincidentally, I was debugging a function that does some
work after doing a (if (null ....) and was not thinking clearly/more
generally.
Tim
--
tcross (at) rapttech dot com dot au
Re: re-loading an elisp file, Pascal J. Bourguignon, 2011/03/05
Message not available
Message not availableRe: re-loading an elisp file, rusi, 2011/03/06
Re: re-loading an elisp file, Le Wang, 2011/03/06
Re: re-loading an elisp file, Kevin Rodgers, 2011/03/07
Message not availableRe: re-loading an elisp file, rusi, 2011/03/07
Re: re-loading an elisp file, rusi, 2011/03/07
Re: re-loading an elisp file, David Combs, 2011/03/24
Re: re-loading an elisp file, Tim X, 2011/03/25
Re: re-loading an elisp file, David Kastrup, 2011/03/25
Re: re-loading an elisp file, Jambunathan K, 2011/03/25
Re: re-loading an elisp file, Tim X, 2011/03/25