Stop the date timer if gnus-article-update-date-headers isn't set.
authorLars Ingebrigtsen <larsi@lenovo.(none)>
Thu, 3 Feb 2011 04:06:09 +0000 (20:06 -0800)
committerLars Ingebrigtsen <larsi@lenovo.(none)>
Thu, 3 Feb 2011 04:06:09 +0000 (20:06 -0800)
lisp/ChangeLog
lisp/gnus-art.el
texi/ChangeLog
texi/gnus.texi

index 1f8a385..68812c8 100644 (file)
@@ -1,3 +1,8 @@
+2011-02-03  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * gnus-art.el (gnus-article-setup-buffer): Stop the date timer if
+       gnus-article-update-date-headers is nil.
+
 2011-02-01  Julien Danjou  <julien@danjou.info>
 
        * mm-uu.el (mm-uu-type-alist): Add support for git format-patch diff
index af47daf..bddcaa9 100644 (file)
@@ -4505,9 +4505,13 @@ commands:
        (setq gnus-summary-buffer
              (gnus-summary-buffer-name gnus-newsgroup-name))
        (gnus-summary-set-local-parameters gnus-newsgroup-name)
-       (when (and gnus-article-update-date-headers
-                  (not article-lapsed-timer))
+       (cond
+        ((and gnus-article-update-date-headers
+              (not article-lapsed-timer))
          (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
index 751fe7e..5c4f0d0 100644 (file)
@@ -1,3 +1,8 @@
+2011-02-03  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * gnus.texi (Article Date): Remove mention of gnus-stop-date-timer,
+       since it's run automatically.
+
 2011-02-01  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * gnus.texi (Customizing Articles): Fix typo.
index d3c0164..dac0952 100644 (file)
@@ -9503,8 +9503,7 @@ that off, say:
 (setq gnus-article-update-date-headers nil)
 @end lisp
 
-in your @file{~/.gnus.el} file.  If you want to stop the updating
-dynamically, you can use the @code{gnus-stop-date-timer} command.
+in your @file{~/.gnus.el} file.
 
 @item W T o
 @kindex W T o (Summary)