(nnagent-request-set-mark): Also set the marks for the original back end that
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 2 Jul 2007 12:15:13 +0000 (12:15 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 2 Jul 2007 12:15:13 +0000 (12:15 +0000)
 keeps marks in the local system.

lisp/ChangeLog
lisp/nnagent.el

index ebc757a..bd96aa8 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-02  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * nnagent.el (nnagent-request-set-mark): Also set the marks for the
+       original back end that keeps marks in the local system.
+
 2007-06-26  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * gnus-art.el (gnus-article-summary-command-nosave): Don't set the 3rd
index ef41d44..6f53528 100644 (file)
     (insert ")\n")
     (write-region (point-min) (point-max) (gnus-agent-lib-file "flags")
                  t 'silent))
+  ;; Also set the marks for the original back end that keeps marks in
+  ;; the local system.
+  (let ((gnus-agent nil))
+    (when (and (memq (car gnus-command-method) '(nntp))
+              (gnus-check-backend-function 'request-set-mark
+                                           (car gnus-command-method)))
+      (funcall (gnus-get-function gnus-command-method 'request-set-mark)
+              group action server)))
   nil)
 
 (deffoo nnagent-retrieve-headers (articles &optional group server fetch-old)