1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-26 19:18:50 +00:00

(ad-make-advised-docstring): Adjust usage for new help-add-fundoc-usage.

This commit is contained in:
Stefan Monnier 2003-05-06 13:58:30 +00:00
parent f8daddcffb
commit 824c61ddc6

View File

@ -3005,7 +3005,7 @@ in any of these classes."
(ad-real-documentation origdef t))
(usage (help-split-fundoc origdoc function))
paragraphs advice-docstring ad-usage)
(if usage (setq origdoc (cdr usage) usage (car usage)))
(setq usage (if (null usage) t (setq origdoc (cdr usage)) (car usage)))
(if origdoc (setq paragraphs (list origdoc)))
(unless (eq style 'plain)
(push (concat "This " origtype " is advised.") paragraphs))