diff options
author | Dave Love <fx@gnu.org> | 1999-08-10 09:51:17 +0000 |
---|---|---|
committer | Dave Love <fx@gnu.org> | 1999-08-10 09:51:17 +0000 |
commit | 8bae7480b8bfe970f97e6afbb919ca41c28397f0 (patch) | |
tree | cf20733365cb5533e2c0cb8db7b357fcfc20c31b /lisp/emacs-lisp/advice.el | |
parent | b38d1cc78ed57ed1b89c349d2af3a20583b5fadf (diff) | |
download | emacs-8bae7480b8bfe970f97e6afbb919ca41c28397f0.tar.gz |
(ad-make-single-advice-docstring): Treat case with no doctring specially.
Diffstat (limited to 'lisp/emacs-lisp/advice.el')
-rw-r--r-- | lisp/emacs-lisp/advice.el | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el index 6148435c308..9f670e8010c 100644 --- a/lisp/emacs-lisp/advice.el +++ b/lisp/emacs-lisp/advice.el @@ -2983,10 +2983,14 @@ Example: `(ad-map-arglists '(a &rest args) '(w x y z))' will return class (ad-advice-name advice) (if advice-docstring "\n" "") (or advice-docstring ""))) - (t (format "%s-advice `%s':%s%s" - (capitalize (symbol-name class)) (ad-advice-name advice) - (if advice-docstring "\n" "") - (or advice-docstring "")))))) + (t (if advice-docstring + (format "%s-advice `%s':\n%s" + (capitalize (symbol-name class)) + (ad-advice-name advice) + advice-docstring) + (format "%s-advice `%s'." + (capitalize (symbol-name class)) + (ad-advice-name advice))))))) (defun ad-make-advised-docstring (function &optional style) ;;"Constructs a documentation string for the advised FUNCTION. |