emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r103086: gnus-art.el (gnus-article-se


From: Katsumi Yamaoka
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r103086: gnus-art.el (gnus-article-setup-buffer): Stop the date timer if gnus-article-update-date-headers is nil.
Date: Thu, 03 Feb 2011 05:01:44 +0000
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 103086
author: Lars Ingebrigtsen <address@hidden>
committer: Katsumi Yamaoka <address@hidden>
branch nick: trunk
timestamp: Thu 2011-02-03 05:01:44 +0000
message:
  gnus-art.el (gnus-article-setup-buffer): Stop the date timer if 
gnus-article-update-date-headers is nil.
  gnus.texi (Article Date): Remove mention of gnus-stop-date-timer, since it's 
run automatically.
modified:
  doc/misc/ChangeLog
  doc/misc/gnus.texi
  lisp/gnus/ChangeLog
  lisp/gnus/gnus-art.el
=== modified file 'doc/misc/ChangeLog'
--- a/doc/misc/ChangeLog        2011-02-01 11:02:10 +0000
+++ b/doc/misc/ChangeLog        2011-02-03 05:01:44 +0000
@@ -1,3 +1,8 @@
+2011-02-03  Lars Ingebrigtsen  <address@hidden>
+
+       * gnus.texi (Article Date): Remove mention of gnus-stop-date-timer,
+       since it's run automatically.
+
 2011-02-01  Lars Ingebrigtsen  <address@hidden>
 
        * gnus.texi (Customizing Articles): Fix typo.

=== modified file 'doc/misc/gnus.texi'
--- a/doc/misc/gnus.texi        2011-02-01 11:02:10 +0000
+++ b/doc/misc/gnus.texi        2011-02-03 05:01:44 +0000
@@ -9503,8 +9503,7 @@
 (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)

=== modified file 'lisp/gnus/ChangeLog'
--- a/lisp/gnus/ChangeLog       2011-02-01 23:46:27 +0000
+++ b/lisp/gnus/ChangeLog       2011-02-03 05:01:44 +0000
@@ -1,3 +1,8 @@
+2011-02-03  Lars Ingebrigtsen  <address@hidden>
+
+       * gnus-art.el (gnus-article-setup-buffer): Stop the date timer if
+       gnus-article-update-date-headers is nil.
+
 2011-02-01  Julien Danjou  <address@hidden>
 
        * mm-uu.el (mm-uu-type-alist): Add support for git format-patch diff

=== modified file 'lisp/gnus/gnus-art.el'
--- a/lisp/gnus/gnus-art.el     2011-02-01 03:54:46 +0000
+++ b/lisp/gnus/gnus-art.el     2011-02-03 05:01:44 +0000
@@ -4505,9 +4505,13 @@
        (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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]