From: Tino Calancha <f92capac@gmail.com>
To: stephen_leake@stephe-leake.org
Cc: Tino Calancha <f92capac@gmail.com>, 21950@debbugs.gnu.org
Subject: bug#21950: 25.1.50; Show the filename where an alias is defined
Date: Mon, 9 May 2016 10:52:44 +0900 (JST) [thread overview]
Message-ID: <alpine.LRH.2.20.1605091049430.32274@calancha-ilc.kek.jp> (raw)
In-Reply-To: <alpine.LRH.2.20.1511181937380.27287@calancha-ilc.kek.jp>
> I found nice to know if the alias is an user alias or an Emacs one,
> and to see in which file is defined.
Below a new patch that solves the issue about showing the filename
where the alias is defined. This patch does not interfere with
the Stefan commit mentioned in this thread.
In GNU Emacs 25.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.30)
of 2016-05-06 built on calancha-pc
Repository revision: 80bea210ff14a64daa1d71765983aa3baa149555
From a139bc5e9c3f4c737abf342b903095684fb38edc Mon Sep 17 00:00:00 2001
From: Tino Calancha <f92capac@gmail.com>
Date: Mon, 9 May 2016 10:19:33 +0900
Subject: [PATCH] Show the filename where an alias is defined
* help-fns (describe-function-1): Pass 'defun as TYPE
to 'find-lisp-object-file-name' when OBJECT
is an alias (Bug#21950).
---
lisp/help-fns.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index d1c8b2d..6ba9140 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -526,7 +526,9 @@ describe-function-1
(sig-key (if (subrp def)
(indirect-function real-def)
real-def))
- (file-name (find-lisp-object-file-name function def))
+ (file-name (find-lisp-object-file-name function
+ (or (and aliased 'defun)
+ def)))
(pt1 (with-current-buffer (help-buffer) (point)))
(beg (if (and (or (byte-code-function-p def)
(keymapp def)
--
2.8.1
next prev parent reply other threads:[~2016-05-09 1:52 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
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 ` Tino Calancha [this message]
2016-06-07 20:46 ` bug#21950: 25.1.50; Show the filename where an alias is defined 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=alpine.LRH.2.20.1605091049430.32274@calancha-ilc.kek.jp \
--to=f92capac@gmail.com \
--cc=21950@debbugs.gnu.org \
--cc=stephen_leake@stephe-leake.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 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.