bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21950: 25.1.50; find-lisp-object-file-name sometimes cannot find fil


From: Tino Calancha
Subject: bug#21950: 25.1.50; find-lisp-object-file-name sometimes cannot find file-name
Date: Wed, 18 Nov 2015 19:48:59 +0900 (JST)
User-agent: Alpine 2.20 (LRH 67 2015-01-07)



* lisp/help-fns.el (find-lisp-object-file-name):
  Restrict second argument of symbol-file to just 'defvar 'defface 'defun

emacs -Q:
;; following returns nil (it should be the value of file)
(let ((alias 'd)
      (def   'dired)
      (file  (expand-file-name "test-alias-v25.1.50-tmp.el"
                               user-emacs-directory)))
  (with-temp-file file
    (insert (format "(defalias '%s '%s)"
                    (symbol-name alias)
                    (symbol-name def))))
  (load-file file)
  (find-lisp-object-file-name alias def))

Attachment: help-fns.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]