mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Don't redundantly cl-print arglist in function docstring again
* lisp/emacs-lisp/cl-print.el (cl-print-object): Don't print arglist part of docstring. * test/lisp/emacs-lisp/cl-print-tests.el (cl-print-tests-1): Update test accordingly.
This commit is contained in:
parent
eb9d3eca80
commit
b567c48869
2 changed files with 6 additions and 5 deletions
|
|
@ -105,10 +105,11 @@ into a button whose action shows the function's disassembly.")
|
|||
(if args
|
||||
(prin1 args stream)
|
||||
(princ "()" stream)))
|
||||
(let ((doc (documentation object 'raw)))
|
||||
(when doc
|
||||
(princ " " stream)
|
||||
(prin1 doc stream)))
|
||||
(pcase (help-split-fundoc (documentation object 'raw) object)
|
||||
;; Drop args which `help-function-arglist' already printed.
|
||||
(`(,_usage . ,(and doc (guard (stringp doc))))
|
||||
(princ " " stream)
|
||||
(prin1 doc stream)))
|
||||
(let ((inter (interactive-form object)))
|
||||
(when inter
|
||||
(princ " " stream)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue