emacs-devel
[Top][All Lists]
Advanced

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

Re: Should autoloaded functions show LIB.el for its location?


From: Lennart Borgman
Subject: Re: Should autoloaded functions show LIB.el for its location?
Date: Sun, 18 Dec 2005 10:47:02 +0100
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Richard M. Stallman wrote:

> I just noticed that for an autoloaded function like `apropos-variable' > the location is shown as "apropos", not "apropos.el". Is that > intentional?
   >
   In describe-function of course. Sorry.

Since the file's name is `apropos.el', it would be clearer (all else
being equal) to show `apropos.el'.

Does the attached small fix do the right thing?
Index: help-fns.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/help-fns.el,v
retrieving revision 1.82
diff -c -r1.82 help-fns.el
*** help-fns.el 30 Nov 2005 15:52:49 -0000      1.82
--- help-fns.el 18 Dec 2005 09:43:37 -0000
***************
*** 322,328 ****
                ((eq (car-safe def) 'macro)
                 "a Lisp macro")
                ((eq (car-safe def) 'autoload)
!                (setq file-name (nth 1 def))
                 (format "%s autoloaded %s"
                         (if (commandp def) "an interactive" "an")
                         (if (eq (nth 4 def) 'keymap) "keymap"
--- 322,328 ----
                ((eq (car-safe def) 'macro)
                 "a Lisp macro")
                ((eq (car-safe def) 'autoload)
!                (setq file-name (concat (nth 1 def) ".el"))
                 (format "%s autoloaded %s"
                         (if (commandp def) "an interactive" "an")
                         (if (eq (nth 4 def) 'keymap) "keymap"

reply via email to

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