emacs-devel
[Top][All Lists]
Advanced

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

Re: why does `variable-at-point' return 0?


From: Štěpán Němec
Subject: Re: why does `variable-at-point' return 0?
Date: Fri, 20 Apr 2012 20:14:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

On Thu, 19 Apr 2012 23:52:22 +0200
Stefan Monnier wrote:

>>> All I can think of is that for some reason someone wanted to 
>>> test using `symbolp' instead of testing using `not' (or `and').
>>> But I cannot imagine why.
>
> That's most likely the reason, so as not to get tripped up by a variable
> whose name happens to be "nil" (unlikely in Lisp, admittedly).
                                  ^^^^^^^^

AFAIK, in "nil-lisps" like Elisp or Common Lisp that is not unlikely,
but impossible. Could you explain what you had in mind?

-- 
Štěpán



reply via email to

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