[Top][All Lists]

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

RE: re-loading an elisp file

From: Drew Adams
Subject: RE: re-loading an elisp file
Date: Sat, 5 Mar 2011 07:54:41 -0800

> Is there a way, when reloading an elisp file, to have it examine (and
> reload new) values of variables?  It's weird that this isn't done with
> "eval-current-buffer" or "load ..." and others.

Sounds like you are discovering that `defvar' does not assign a variable a value
if it already has one.  This is a feature.

`setq' and `setq-default' do, however.

But in general an Elisp library should not act this way, by design.  A personal
init file is another story - there you might want to use `setq' and
`setq-default' in some cases.

reply via email to

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