diff options
author | Glenn Morris <rgm@gnu.org> | 2007-09-05 03:47:22 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2007-09-05 03:47:22 +0000 |
commit | feb47a092cce60fbdb6f591ddab2ec09729e6511 (patch) | |
tree | 7c63885974de27924417e17efa58090f5c2fc0f1 /lisp/emacs-lisp | |
parent | d61af56253764403d7c4ce8dd9a41cd378b2fd16 (diff) | |
download | emacs-feb47a092cce60fbdb6f591ddab2ec09729e6511.tar.gz emacs-feb47a092cce60fbdb6f591ddab2ec09729e6511.tar.bz2 emacs-feb47a092cce60fbdb6f591ddab2ec09729e6511.zip |
Johan Bockg� <bojohan at dd.chalmers.se>
(ad-make-advised-docstring): Highlight note in doc string.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/advice.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el index dbebf314798..d04550c187d 100644 --- a/lisp/emacs-lisp/advice.el +++ b/lisp/emacs-lisp/advice.el @@ -2996,7 +2996,9 @@ in any of these classes." (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)) + (push (propertize (concat "This " origtype " is advised.") + 'face 'font-lock-warning-face) + paragraphs)) (ad-dolist (class ad-advice-classes) (ad-dolist (advice (ad-get-enabled-advices function class)) (setq advice-docstring |