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: Stephen Leake
Subject: bug#21950: 25.1.50; find-lisp-object-file-name sometimes cannot find file-name
Date: Wed, 18 Nov 2015 09:59:07 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt)

Tino Calancha <f92capac@gmail.com> writes:

> ;; 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))

You are passing 'dired as the TYPE argument, which is undocumented, so
it's not surprising it doesn't do what you want.

How did you stumble into this?

-- 
-- Stephe





reply via email to

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