changeset 85584:91aa73da6526

(ad-make-advised-docstring): Add ad-advice-info text property to doc string.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 23 Oct 2007 08:40:53 +0000
parents 9607a8382f1b
children 923d7a3f8eed
files lisp/emacs-lisp/advice.el
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/advice.el	Tue Oct 23 07:21:31 2007 +0000
+++ b/lisp/emacs-lisp/advice.el	Tue Oct 23 08:40:53 2007 +0000
@@ -3004,8 +3004,10 @@
 	(if advice-docstring
 	    (push advice-docstring paragraphs))))
     (setq origdoc (if paragraphs
-		      ;; separate paragraphs with blank lines:
-		      (mapconcat 'identity (nreverse paragraphs) "\n\n")))
+		      (propertize
+		       ;; separate paragraphs with blank lines:
+		       (mapconcat 'identity (nreverse paragraphs) "\n\n")
+		       'ad-advice-info function)))
     (help-add-fundoc-usage origdoc usage)))
 
 (defun ad-make-plain-docstring (function)