[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?
Nothing.
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.
- re-loading an elisp file, ken, 2011/03/05
- RE: re-loading an elisp file, Drew Adams, 2011/03/05
- Re: re-loading an elisp file, ken, 2011/03/05
- RE: re-loading an elisp file, Drew Adams, 2011/03/05
- RE: re-loading an elisp file, Drew Adams, 2011/03/05
- Re: re-loading an elisp file, ken, 2011/03/05
- Re: re-loading an elisp file, PJ Weisberg, 2011/03/05
- Message not available
- Re: re-loading an elisp file, David Combs, 2011/03/24
- RE: re-loading an elisp file,
Drew Adams <=
- Message not available
- Re: re-loading an elisp file, David Combs, 2011/03/24
- RE: re-loading an elisp file, Drew Adams, 2011/03/24
Message not available