diff options
author | Richard M. Stallman <rms@gnu.org> | 1999-05-22 19:49:39 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1999-05-22 19:49:39 +0000 |
commit | 0ab0e672f893bbe7a18a641fd1c3c1bad6184ef4 (patch) | |
tree | c5c379a60cf00b61ba8a7774febbdf95fdc770ad /lisp/help.el | |
parent | ccbb360e3f437b135f8c91bde55c05758a99f587 (diff) | |
download | emacs-0ab0e672f893bbe7a18a641fd1c3c1bad6184ef4.tar.gz |
(describe-function-1): Extra arg, interactive-p.
(describe-key, describe-function): Use it.
Diffstat (limited to 'lisp/help.el')
-rw-r--r-- | lisp/help.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/help.el b/lisp/help.el index 5166c8bc164..9d0c4e856aa 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -327,7 +327,7 @@ If FUNCTION is nil, applies `message' to it, thus printing it." (princ " runs the command ") (prin1 defn) (princ "\n which is ") - (describe-function-1 defn nil) + (describe-function-1 defn nil (interactive-p)) (print-help-return-message))))))) (defun describe-mode () @@ -591,7 +591,7 @@ It can also be nil, if the definition is not associated with any file." ;; Use " is " instead of a colon so that ;; it is easier to get out the function name using forward-sexp. (princ " is ") - (describe-function-1 function nil) + (describe-function-1 function nil (interactive-p)) (print-help-return-message) (save-excursion (set-buffer standard-output) @@ -599,7 +599,7 @@ It can also be nil, if the definition is not associated with any file." (buffer-string))) (message "You didn't specify a function"))) -(defun describe-function-1 (function parens) +(defun describe-function-1 (function parens interactive-p) (let* ((def (if (symbolp function) (symbol-function function) function)) @@ -685,7 +685,7 @@ It can also be nil, if the definition is not associated with any file." (if doc (progn (terpri) (princ doc) - (help-setup-xref (list #'describe-function function) (interactive-p))) + (help-setup-xref (list #'describe-function function) interactive-p)) (princ "not documented"))))) (defun variable-at-point () |