GNU bug report logs -
#24697
25.1; find-lisp-object-file-name may return wrong locations
Previous Next
Reported by: Alex <agrambot <at> gmail.com>
Date: Fri, 14 Oct 2016 22:20:02 UTC
Severity: normal
Tags: fixed, patch
Found in version 25.1
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
#+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'.
This bug report was last modified 4 years and 282 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.