From: Alex <agrambot@gmail.com>
To: 24697@debbugs.gnu.org
Subject: bug#24697: 25.1; find-lisp-object-file-name may return wrong locations
Date: Fri, 14 Oct 2016 16:19:23 -0600 [thread overview]
Message-ID: <87mvi68tg4.fsf@gmail.com> (raw)
#+BEGIN_SRC elisp
(defface tab-width
'((t :foreground "red"))
"A face with the same name as a variable.")
(find-lisp-object-file-name 'tab-width 'defface)
#+END_SRC
The above results in the symbol 'C-source'. The result should be nil as
the 'tab-width' face was evaluated in *scratch*.
Putting the above definition into an actual file and using `load-file'
does return the proper source location.
#+BEGIN_SRC elisp
(find-lisp-object-file-name 'mapatoms 1)
#+END_SRC
This should return 'C-source' but instead it returns nil.
#+BEGIN_SRC elisp
(find-lisp-object-file-name 'tab-width 1)
#+END_SRC
This should return nil but instead it returns 'C-source'.
next reply other threads:[~2016-10-14 22:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-14 22:19 Alex [this message]
2017-06-17 22:26 ` bug#24697: 25.1; find-lisp-object-file-name may return wrong locations Alex
2017-06-18 19:51 ` Dmitry Gutov
2017-06-19 2:59 ` Alex
2017-09-28 21:26 ` Dmitry Gutov
2020-08-11 13:26 ` Lars Ingebrigtsen
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=87mvi68tg4.fsf@gmail.com \
--to=agrambot@gmail.com \
--cc=24697@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 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).