mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(describe-function): Print the arglist if the function is bytecode or a list.
This commit is contained in:
parent
9b2471dfa9
commit
4591cb9059
1 changed files with 18 additions and 4 deletions
22
lisp/help.el
22
lisp/help.el
|
|
@ -311,10 +311,24 @@ C-w print information on absence of warranty for GNU Emacs."
|
|||
;;; (nth 1 def)
|
||||
))
|
||||
(t "")))
|
||||
(terpri))
|
||||
(if (documentation function)
|
||||
(princ (documentation function))
|
||||
(princ "not documented"))
|
||||
(terpri)
|
||||
(if (documentation function)
|
||||
(princ (documentation function))
|
||||
(princ "not documented"))
|
||||
(cond ((byte-code-function-p def)
|
||||
(save-excursion
|
||||
(set-buffer standard-output)
|
||||
(or (eq (char-after (1- (point-max))) ?\n)
|
||||
(terpri)))
|
||||
(terpri)
|
||||
(princ (car (append def nil))))
|
||||
((eq (car-safe def) 'lambda)
|
||||
(save-excursion
|
||||
(set-buffer standard-output)
|
||||
(or (eq (char-after (1- (point-max))) ?\n)
|
||||
(terpri)))
|
||||
(terpri)
|
||||
(princ (nth 1 def)))))
|
||||
(print-help-return-message)
|
||||
;; Return the text we displayed.
|
||||
(save-excursion (set-buffer standard-output) (buffer-string))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue