[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: Thu, 24 Mar 2011 11:57:33 -0700

> >Think of defvar as defining a variable.  If the variable is already
> >defined, there's nothing for defvar to do.  Setting the variable's
> ...
> Suppose the default value is 5, and then you reset (via setq) it
> to 0, or null, or the like.
> Then you read in a .el-file containing a defvar on it --
> what happens then?


C-h f defvar RET

...INITVALUE is evaluated, and used to set SYMBOL,
only if SYMBOL's value is void.

After your `setq' the symbol's value is not void, so `defvar' does nothing.

reply via email to

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