(gnus-setup-message): Ignore an article copy while parsing
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 27 Feb 2004 09:13:06 +0000 (09:13 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 27 Feb 2004 09:13:06 +0000 (09:13 +0000)
 gnus-posting-styles when the message is not for replying.

lisp/ChangeLog
lisp/gnus-msg.el

index 75a49b9..bad3364 100644 (file)
@@ -1,5 +1,8 @@
 2004-02-27  Katsumi Yamaoka  <yamaoka@jpl.org>
 
+       * gnus-msg.el (gnus-setup-message): Ignore an article copy while
+       parsing gnus-posting-styles when the message is not for replying.
+
        * dgnushack.el: Autoload sgml-mode for XEmacs.
 
        * nnrss.el (nnrss-opml-export): Use
index 504da2d..05f2b2b 100644 (file)
@@ -395,8 +395,13 @@ Thank you for your help in stamping out bugs.
        ;; added an optional argument to `gnus-configure-posting-styles' to
        ;; make sure that the correct value for the group name is used. -- drv
        (add-hook 'message-mode-hook
-                (lambda ()
-                  (gnus-configure-posting-styles ,group)))
+                (if (memq ,config '(reply-yank reply))
+                    (lambda ()
+                      (gnus-configure-posting-styles ,group))
+                  (lambda ()
+                    ;; There may be an old " *gnus article copy*" buffer.
+                    (let (gnus-article-copy)
+                      (gnus-configure-posting-styles ,group)))))
        (gnus-pull ',(intern gnus-draft-meta-information-header)
                  message-required-headers)
        (when (and ,group