all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
To: Tino Calancha <f92capac@gmail.com>
Cc: 21950@debbugs.gnu.org
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	[thread overview]
Message-ID: <86d1v78fjo.fsf@stephe-leake.org> (raw)
In-Reply-To: <alpine.LRH.2.20.1511181937380.27287@calancha-ilc.kek.jp> (Tino Calancha's message of "Wed, 18 Nov 2015 19:48:59 +0900 (JST)")

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	other threads:[~2015-11-18 15:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-18 10:48 bug#21950: 25.1.50; find-lisp-object-file-name sometimes cannot find file-name Tino Calancha
2015-11-18 15:59 ` Stephen Leake [this message]
2015-11-19  0:27   ` Tino Calancha
2015-11-19 17:47     ` Stephen Leake
2015-11-20 10:20       ` Tino Calancha
2015-11-20 10:48         ` bug#21950: [SPAM UNSURE] " Stephen Leake
2016-05-09  1:52 ` bug#21950: 25.1.50; Show the filename where an alias is defined Tino Calancha
2016-06-07 20:46   ` 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=86d1v78fjo.fsf@stephe-leake.org \
    --to=stephen_leake@stephe-leake.org \
    --cc=21950@debbugs.gnu.org \
    --cc=f92capac@gmail.com \
    /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.