unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <emacs-devel@gnu.org>
Subject: describe-variable gets the defining library wrong
Date: Fri, 19 Jun 2009 10:27:11 -0700	[thread overview]
Message-ID: <EF7D6124EF074B97931F5083BB52F6D9@us.oracle.com> (raw)

I haven't found a recipe to reproduce this, but it happens to me quite often
with Emacs 23: `describe-variable' says "foo is a variable defined in `bar.el'"
when foo is not defined in `bar.el' at all, or at least not most recently.

I've even seen it happen when `bar.el' has only a byte-compiler quieter sexp,
such as this, which should hardly count as a definition: (defvar foo). This is a
mystery, to me.

I've also seen "defined in `.emacs'", when that is not at all where the variable
is defined. I suppose this is a fallback (copout), if Emacs can't tell where the
variable was really defined. That's understandable, I guess. (But not very
useful, and still misleading - maybe it's better to say nothing if we know
nothing.)

But saying that the current definition is in library bar.el when it was last
defined in toto.el is wrong. Emacs has always had some degree of difficulty
reporting this, but it seems like this has gotten worse in Emacs 23.

Does anyone else see this behavior, or is it just me? Sorry I don't have a
recipe to reproduce this yet.





             reply	other threads:[~2009-06-19 17:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-19 17:27 Drew Adams [this message]
2009-06-24 21:08 ` describe-variable gets the defining library wrong Stefan Monnier
2009-06-26 17:58   ` Drew Adams
2009-06-26 23:51     ` 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=EF7D6124EF074B97931F5083BB52F6D9@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    /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).