(gnus-article-highlight-citation): Add KEEP-BUFFER arg.
authorReiner Steib <Reiner.Steib@gmx.de>
Sun, 14 Jan 2007 21:31:10 +0000 (21:31 +0000)
committerReiner Steib <Reiner.Steib@gmx.de>
Sun, 14 Jan 2007 21:31:10 +0000 (21:31 +0000)
lisp/ChangeLog
lisp/gnus-cite.el

index 7d62ce6..c2be3b3 100644 (file)
@@ -1,5 +1,7 @@
 2007-01-14  Reiner Steib  <Reiner.Steib@gmx.de>
 
+       * gnus-cite.el (gnus-article-highlight-citation): Add KEEP-BUFFER arg.
+
        * gnus-art.el (gnus-article-browse-html-article): Add warning about web
        bugs to doc string.
        (gnus-button-alist): Add mid\\|message-id.
index d1f4b3c..00f815a 100644 (file)
@@ -370,7 +370,7 @@ in a boring face, then the pages will be skipped."
 
 ;;; Commands:
 
-(defun gnus-article-highlight-citation (&optional force)
+(defun gnus-article-highlight-citation (&optional force keep-buffer)
   "Highlight cited text.
 Each citation in the article will be highlighted with a different face.
 The faces are taken from `gnus-cite-face-list'.
@@ -384,7 +384,8 @@ Lines matching `gnus-cite-attribution-suffix' and perhaps
 `gnus-cite-attribution-prefix' are considered attribution lines."
   (interactive (list 'force))
   (save-excursion
-    (set-buffer gnus-article-buffer)
+    (unless keep-buffer
+      (set-buffer gnus-article-buffer))
     (gnus-cite-parse-maybe force)
     (let ((buffer-read-only nil)
          (alist gnus-cite-prefix-alist)