Don't bug out when updating multiple headers.
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 14 Feb 2011 19:59:56 +0000 (11:59 -0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 14 Feb 2011 20:00:16 +0000 (12:00 -0800)
lisp/ChangeLog
lisp/gnus-art.el

index 79d6423..0bfa2b0 100644 (file)
@@ -10,6 +10,9 @@
 
 2011-02-14  Lars Ingebrigtsen  <larsi@gnus.org>
 
 
 2011-02-14  Lars Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-art.el (article-update-date-lapsed): Don't bug out when updating
+       multiple headers.
+
        * nnimap.el (nnimap-inhibit-logging): New variable.
        (nnimap-log-command): Don't log login commands.
 
        * nnimap.el (nnimap-inhibit-logging): New variable.
        (nnimap-log-command): Don't log login commands.
 
index 3e16308..82ad497 100644 (file)
@@ -3641,10 +3641,11 @@ function and want to see what the date was before converting."
                 (let ((type (get-text-property (match-beginning 0)
                                                'gnus-date-type)))
                   (when (memq type '(lapsed combined-lapsed user-format))
                 (let ((type (get-text-property (match-beginning 0)
                                                'gnus-date-type)))
                   (when (memq type '(lapsed combined-lapsed user-format))
-                    (unless (= window-start
-                               (save-excursion
-                                 (forward-line 1)
-                                 (point)))
+                    (when (and window-start
+                               (not (= window-start
+                                       (save-excursion
+                                         (forward-line 1)
+                                         (point)))))
                       (setq window-start nil))
                     (save-excursion
                       (article-date-ut type t (match-beginning 0)))
                       (setq window-start nil))
                     (save-excursion
                       (article-date-ut type t (match-beginning 0)))