aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-21 19:37:36 +0000
committerRichard M. Stallman1994-10-21 19:37:36 +0000
commit6f6bfb857335d7a7d0edb23a3303f01e8be04755 (patch)
tree6f43f2ef2a30521ce381ff646952dcb96f47f72e
parent9fe320f1e3b8a6fa542ad5433734b4ab462944d3 (diff)
downloademacs-6f6bfb857335d7a7d0edb23a3303f01e8be04755.tar.gz
emacs-6f6bfb857335d7a7d0edb23a3303f01e8be04755.zip
(describe-function): Mention the file it was loaded from.
-rw-r--r--lisp/help.el22
1 files changed, 14 insertions, 8 deletions
diff --git a/lisp/help.el b/lisp/help.el
index a0c948d16dc..b2172fb91e2 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -388,27 +388,33 @@ C-w print information on absence of warranty for GNU Emacs."
388 (beg (if (commandp def) "an interactive " "a "))) 388 (beg (if (commandp def) "an interactive " "a ")))
389 (princ (cond ((or (stringp def) 389 (princ (cond ((or (stringp def)
390 (vectorp def)) 390 (vectorp def))
391 "a keyboard macro.") 391 "a keyboard macro")
392 ((subrp def) 392 ((subrp def)
393 (concat beg "built-in function.")) 393 (concat beg "built-in function"))
394 ((byte-code-function-p def) 394 ((byte-code-function-p def)
395 (concat beg "compiled Lisp function.")) 395 (concat beg "compiled Lisp function"))
396 ((symbolp def) 396 ((symbolp def)
397 (format "alias for `%s'." def)) 397 (format "alias for `%s'" def))
398 ((eq (car-safe def) 'lambda) 398 ((eq (car-safe def) 'lambda)
399 (concat beg "Lisp function.")) 399 (concat beg "Lisp function"))
400 ((eq (car-safe def) 'macro) 400 ((eq (car-safe def) 'macro)
401 "a Lisp macro.") 401 "a Lisp macro")
402 ((eq (car-safe def) 'mocklisp) 402 ((eq (car-safe def) 'mocklisp)
403 "a mocklisp function.") 403 "a mocklisp function")
404 ((eq (car-safe def) 'autoload) 404 ((eq (car-safe def) 'autoload)
405 (format "%s autoloaded Lisp %s." 405 (format "%s autoloaded Lisp %s"
406 (if (commandp def) "an interactive" "an") 406 (if (commandp def) "an interactive" "an")
407 (if (nth 4 def) "macro" "function") 407 (if (nth 4 def) "macro" "function")
408;;; Including the file name made this line too long. 408;;; Including the file name made this line too long.
409;;; (nth 1 def) 409;;; (nth 1 def)
410 )) 410 ))
411 (t ""))) 411 (t "")))
412 (if (get function 'autoload)
413 (progn
414 (princ " in the `")
415 (princ (car (get function 'autoload)))
416 (princ "' package")))
417 (princ ".")
412 (terpri) 418 (terpri)
413 (let ((arglist (cond ((byte-code-function-p def) 419 (let ((arglist (cond ((byte-code-function-p def)
414 (car (append def nil))) 420 (car (append def nil)))