[Top][All Lists]

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

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

From: Juanma Barranquero
Subject: Re: why does `variable-at-point' return 0?
Date: Fri, 20 Apr 2012 00:56:24 +0200

On Thu, Apr 19, 2012 at 23:52, Stefan Monnier <address@hidden> wrote:

> 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).

`variable-at-point' is used five times in the lisp/* sources, and in
every case there's a check like

  (and (symbolp val) val)


  (if (eq val 0) nil val)

so it seems like v-a-p needs an upgrade.


reply via email to

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