[Top][All Lists]

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

Re: Generality of defvar

From: carlmarcos
Subject: Re: Generality of defvar
Date: Wed, 27 Jul 2022 01:36:26 +0200 (CEST)

Jul 26, 2022, 23:16 by

> carlmarcos--- via Users list for the GNU Emacs text editor wrote:
>> Have been looking into defvar and noticed the generality of
>> its use
>> (defvar aname t)
>> (defvar bname nil)
>> (defvar cname 1)
>> (defvar dname "text")
> For practical reasons it can be better to do
> (defvar var-name)
> (setq var-name 'var-value)
> instead because if you do something with that and want to
> reset it, it's enough to evaluate the second line, whereas if
> you just have the first line you tend to evaluate that one and
> if/because the variable is already set at that point then
> nothing will happen ...

I cannot follow what you are trying to say.

reply via email to

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