unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Drew Adams <drew.adams@oracle.com>, emacs-devel@gnu.org
Subject: Re: why does `variable-at-point' return 0?
Date: Fri, 20 Apr 2012 00:56:24 +0200	[thread overview]
Message-ID: <CAAeL0ST=5MK8yAd7_tXY23YqVTOGUvdNs9eqN9n962S+qO2MXA@mail.gmail.com> (raw)
In-Reply-To: <jwvr4vj4cgk.fsf-monnier+emacs@gnu.org>

On Thu, Apr 19, 2012 at 23:52, Stefan Monnier <monnier@iro.umontreal.ca> 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)

or

  (if (eq val 0) nil val)

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

    Juanma



  reply	other threads:[~2012-04-19 22:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-07  0:23 why does `variable-at-point' return 0? Drew Adams
2012-04-16 18:07 ` Drew Adams
2012-04-19 19:50   ` Štěpán Němec
2012-04-19 21:28     ` Drew Adams
2012-04-19 21:52   ` Stefan Monnier
2012-04-19 22:56     ` Juanma Barranquero [this message]
2012-04-20 18:14     ` Štěpán Němec
2012-04-20 22:57       ` Juanma Barranquero
2012-04-21  2:24       ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAeL0ST=5MK8yAd7_tXY23YqVTOGUvdNs9eqN9n962S+qO2MXA@mail.gmail.com' \
    --to=lekktu@gmail.com \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).