(gnus-cite-face-list): Set the value of gnus-message-citation-keywords.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 7 Feb 2007 09:35:53 +0000 (09:35 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 7 Feb 2007 09:35:53 +0000 (09:35 +0000)
lisp/ChangeLog
lisp/gnus-cite.el

index 0ac41ad..39c21d2 100644 (file)
@@ -1,7 +1,7 @@
 2007-02-07  Katsumi Yamaoka  <yamaoka@jpl.org>
 
-       * gnus-cite.el (gnus-cite-face-list): Set the value of
-       gnus-message-max-citation-depth.
+       * gnus-cite.el (gnus-cite-face-list): Set the values of
+       gnus-message-max-citation-depth and gnus-message-citation-keywords.
        (gnus-message-max-citation-depth): Use defvar rather than defconst.
        (gnus-message-cite-prefix-regexp): New variable.
        (gnus-message-search-citation-line): Use it; protect against long
index d186986..832e251 100644 (file)
@@ -309,7 +309,16 @@ This should make it easier to see who wrote what."
         (prog1
             (custom-set-default symbol value)
           (if (boundp 'gnus-message-max-citation-depth)
-              (setq gnus-message-max-citation-depth (length value))))))
+              (setq gnus-message-max-citation-depth (length value)))
+          (if (boundp 'gnus-message-citation-keywords)
+              (setq gnus-message-citation-keywords
+                    `((gnus-message-search-citation-line
+                       ,@(let ((list nil)
+                               (count 1))
+                           (dolist (face gnus-cite-face-list (nreverse list))
+                             (push (list count (list 'quote face) 'prepend t)
+                                   list)
+                             (setq count (1+ count)))))))))))
 
 (defcustom gnus-cite-hide-percentage 50
   "Only hide excess citation if above this percentage of the body."