all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: 25109@debbugs.gnu.org
Subject: bug#25109: 25.1.50; `symbol-file' is sometimes lying
Date: Sun, 04 Dec 2016 19:12:06 +0100	[thread overview]
Message-ID: <87shq3pnrd.fsf@web.de> (raw)


Hi,

emacs -Q:

(symbol-file 'pcase)
  ==> "pcase"

(require 'subr-x)
  ==> subr-x

(symbol-file 'pcase)
  ==> "/usr/local/share/emacs/25.1.50/lisp/emacs-lisp/subr-x.elc"

`pcase' is not (re)defined in subr-x.

Seems the reason for the wrong result is that the entry

   (require . pcase)

in subr-x's entry in `load-history' is mistakenly treated as a
definition of the symbol "pcase".

Dunno if there are other cases like this (or unlike this).  If we can't
be sure that `symbol-file' returns the correct value in any case, we
should say in the documentation that it works only heuristically.  But I
guess we just need to be more accurate.


TIA,

Michael.



In GNU Emacs 25.1.50.10 (x86_64-pc-linux-gnu, GTK+ Version 3.22.3)
 of 2016-11-22 built on drachen
Repository revision: 3f2b497cdddcf1f124f1c9f94354d5f457a4070f
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
System Description:	Debian GNU/Linux testing (stretch)





             reply	other threads:[~2016-12-04 18:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-04 18:12 Michael Heerdegen [this message]
2016-12-08  7:19 ` bug#25109: 25.1.50; `symbol-file' is sometimes lying Glenn Morris

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

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

  git send-email \
    --in-reply-to=87shq3pnrd.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=25109@debbugs.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.