(message-cite-original-1): Call
authorReiner Steib <Reiner.Steib@gmx.de>
Sun, 14 Jan 2007 21:36:57 +0000 (21:36 +0000)
committerReiner Steib <Reiner.Steib@gmx.de>
Sun, 14 Jan 2007 21:36:57 +0000 (21:36 +0000)
gnus-article-highlight-citation if requested.

lisp/ChangeLog
lisp/message.el

index 7cb6fdc..1de51f0 100644 (file)
@@ -1,5 +1,8 @@
 2007-01-14  Reiner Steib  <Reiner.Steib@gmx.de>
 
+       * message.el (message-cite-original-1): Call
+       gnus-article-highlight-citation if requested.
+
        * gnus-cite.el (gnus-article-highlight-citation): Add SAME-BUFFER arg.
 
        * gnus-art.el (gnus-article-browse-html-article): Add warning about web
index c248586..3fdb9f0 100644 (file)
@@ -3600,14 +3600,21 @@ This function uses `mail-citation-hook' if that is non-nil."
        (unless (bolp)
          (insert "\n"))
        (funcall message-citation-line-function))
-      (when (and x-no-archive
-                (not message-cite-articles-with-x-no-archive)
-                (string-match "yes" x-no-archive))
-       (undo-boundary)
-       (delete-region (point) (mark t))
-       (insert "> [Quoted text removed due to X-No-Archive]\n")
-       (push-mark)
-       (forward-line -1)))))
+      (if (and x-no-archive
+              (not message-cite-articles-with-x-no-archive)
+              (string-match "yes" x-no-archive))
+         (progn
+           (undo-boundary)
+           (delete-region (point) (mark t))
+           (insert "> [Quoted text removed due to X-No-Archive]\n")
+           (push-mark)
+           (forward-line -1))
+       ;; FIXME: Doesn't handle first attribution line correctly.  Probably
+       ;; font-lock looks for "\n\n" to find start of mail message.
+       (when (and (boundp 'gnus-message-highlight-citation)
+                  gnus-message-highlight-citation
+                  (fboundp 'gnus-article-highlight-citation))
+         (gnus-article-highlight-citation nil t))))))
 
 (defun message-cite-original ()
   "Cite function in the standard Message manner."
@@ -5195,14 +5202,14 @@ In posting styles use `(\"Expires\" (make-expires-date 30))'."
           (concat message-user-path "!" login-name))
          (t login-name))))
 
-(defun message-make-from ()
+(defun message-make-from (&optional name address )
   "Make a From header."
   (let* ((style message-from-style)
-        (login (message-make-address))
-        (fullname
-         (or (and (boundp 'user-full-name)
-                  user-full-name)
-             (user-full-name))))
+        (login (or address (message-make-address)))
+        (fullname (or name
+                      (and (boundp 'user-full-name)
+                           user-full-name)
+                      (user-full-name))))
     (when (string= fullname "&")
       (setq fullname (user-login-name)))
     (with-temp-buffer
@@ -6094,7 +6101,7 @@ OTHER-HEADERS is an alist of header/value pairs."
 
 (defun message-get-reply-headers (wide &optional to-address address-headers)
   (let (follow-to mct never-mct to cc author mft recipients extra)
-    ;; Find all relevant headers we need.
+  ;; Find all relevant headers we need.
     (save-restriction
       (message-narrow-to-headers-or-head)
       ;; Gmane renames "To".  Look at "Original-To", too, if it is present in