Synch up with main trunk.
authorteranisi <teranisi>
Wed, 9 Feb 2005 14:10:25 +0000 (14:10 +0000)
committerteranisi <teranisi>
Wed, 9 Feb 2005 14:10:25 +0000 (14:10 +0000)
wl/ChangeLog
wl/wl-news.el.in
wl/wl-summary.el

index 36dbd32..55f1eb5 100644 (file)
@@ -1,3 +1,13 @@
+2005-02-06  TAKAHASHI Kaoru  <kaoru@kaisei.org>
+
+       * wl-news.el.in: Set file variable `no-byte-compile'.
+
+2005-02-06  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
+
+       * wl-summary.el (elmo-event-handler-flag-changed): Does not check
+       whether a target message is within displaying area.
+       (elmo-event-handler-cache-changed): Ditto.
+
 2005-02-01  Tetsurou Okazaki  <okazaki@be.to>
 
        * wl-thread.el (wl-thread-entity-get-descendant): Change `defsubst'
index 1996f83..b968340 100644 (file)
 (require 'product)
 (product-provide (provide 'wl-news) (require 'wl-version))
 
+\f
+;; Local Variables:
+;; no-byte-compile: t
+;; End:
 ;;; wl-news.el ends here
index d895a91..e0c31be 100644 (file)
@@ -659,49 +659,58 @@ See also variable `wl-use-petname'."
                                                     numbers)
   (save-excursion
     (set-buffer (wl-summary-event-handler-buffer-internal handler))
-    (let ((window-list (get-buffer-window-list (current-buffer) 'nomini t))
-         invalidate)
+    (if wl-summary-lazy-update-mark
+       (let ((window-list (get-buffer-window-list (current-buffer) 'nomini t))
+             invalidate)
+         (dolist (number numbers)
+           (when (wl-summary-message-visible-p number)
+             (if (catch 'visible
+                   (let ((window-list window-list)
+                         win)
+                     (while (setq win (car window-list))
+                       (when (wl-summary-jump-to-msg number
+                                                     (window-start win)
+                                                     (window-end win))
+                         (throw 'visible t))
+                       (setq window-list (cdr window-list)))))
+                 (wl-summary-update-persistent-mark number)
+               (setq invalidate t))))
+         (when invalidate
+           (wl-summary-invalidate-persistent-mark)
+           (dolist (win window-list)
+             (wl-summary-validate-persistent-mark
+              (window-start win)
+              (window-end win)))))
       (dolist (number numbers)
-       (when (wl-summary-message-visible-p number)
-         (if (catch 'visible
-               (let ((window-list window-list)
-                     win)
-                 (while (setq win (car window-list))
-                   (when (wl-summary-jump-to-msg number
-                                                 (window-start win)
-                                                 (window-end win))
-                     (throw 'visible t))
-                   (setq window-list (cdr window-list)))))
-             (wl-summary-update-persistent-mark number)
-           (setq invalidate t))))
-      (when invalidate
-       (wl-summary-invalidate-persistent-mark)
-       (dolist (win window-list)
-         (wl-summary-validate-persistent-mark
-          (window-start win)
-          (window-end win)))))))
+       (when (and (wl-summary-message-visible-p number)
+                  (wl-summary-jump-to-msg number))
+         (wl-summary-update-persistent-mark number))))))
 
 (luna-define-method elmo-event-handler-cache-changed
   ((handler wl-summary-event-handler) number)
   (save-excursion
     (set-buffer (wl-summary-event-handler-buffer-internal handler))
-    (let ((window-list (get-buffer-window-list (current-buffer) 'nomini t)))
-      (when (wl-summary-message-visible-p number)
-       (if (catch 'visible
-             (let ((window-list window-list)
-                   win)
-               (while (setq win (car window-list))
-                 (when (wl-summary-jump-to-msg number
-                                               (window-start win)
-                                               (window-end win))
-                   (throw 'visible t))
-                 (setq window-list (cdr window-list)))))
-           (wl-summary-update-persistent-mark number)
-         (wl-summary-invalidate-persistent-mark)
-         (dolist (win window-list)
-           (wl-summary-validate-persistent-mark
-            (window-start win)
-            (window-end win))))))))
+    (if wl-summary-lazy-update-mark
+       (let ((window-list (get-buffer-window-list (current-buffer) 'nomini t)))
+         (when (wl-summary-message-visible-p number)
+           (if (catch 'visible
+                 (let ((window-list window-list)
+                       win)
+                   (while (setq win (car window-list))
+                     (when (wl-summary-jump-to-msg number
+                                                   (window-start win)
+                                                   (window-end win))
+                       (throw 'visible t))
+                     (setq window-list (cdr window-list)))))
+               (wl-summary-update-persistent-mark number)
+             (wl-summary-invalidate-persistent-mark)
+             (dolist (win window-list)
+               (wl-summary-validate-persistent-mark
+                (window-start win)
+                (window-end win))))))
+      (when (and (wl-summary-message-visible-p number)
+                (wl-summary-jump-to-msg number))
+       (wl-summary-update-persistent-mark number)))))
 
 (defun wl-summary-buffer-detach ()
   (when (and (eq major-mode 'wl-summary-mode)