Always restart the date timer so that user changes to the frequency is respected.
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 21 Feb 2011 23:44:45 +0000 (15:44 -0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 21 Feb 2011 23:44:45 +0000 (15:44 -0800)
lisp/ChangeLog
lisp/gnus-art.el

index 01bc86a..0b890be 100644 (file)
@@ -1,6 +1,8 @@
 2011-02-21  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-art.el (gnus-article-update-date-headers): Doc fix.
 2011-02-21  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-art.el (gnus-article-update-date-headers): Doc fix.
+       (gnus-article-setup-buffer): Always restart the date timer so that user
+       changes to the frequency is respected.
 
        * nnimap.el (nnimap-open-connection-1): auth-source expects strings as
        port numbers, so make sure it gets that if nnimap-server-port is
 
        * nnimap.el (nnimap-open-connection-1): auth-source expects strings as
        port numbers, so make sure it gets that if nnimap-server-port is
index f818228..2a36c43 100644 (file)
@@ -4505,13 +4505,10 @@ commands:
        (setq gnus-summary-buffer
              (gnus-summary-buffer-name gnus-newsgroup-name))
        (gnus-summary-set-local-parameters gnus-newsgroup-name)
        (setq gnus-summary-buffer
              (gnus-summary-buffer-name gnus-newsgroup-name))
        (gnus-summary-set-local-parameters gnus-newsgroup-name)
-       (cond
-        ((and gnus-article-update-date-headers
-              (not article-lapsed-timer))
+       (when article-lapsed-timer
+         (gnus-stop-date-timer))
+       (when gnus-article-update-date-headers
          (gnus-start-date-timer gnus-article-update-date-headers))
          (gnus-start-date-timer gnus-article-update-date-headers))
-        ((and (not gnus-article-update-date-headers)
-              article-lapsed-timer)
-         (gnus-stop-date-timer)))
        (current-buffer)))))
 
 ;; Set article window start at LINE, where LINE is the number of lines
        (current-buffer)))))
 
 ;; Set article window start at LINE, where LINE is the number of lines