]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-art.el (article-treat-date): Assume that gnus-article-date-headers may be a...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 11 Apr 2011 00:28:41 +0000 (00:28 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 11 Apr 2011 00:28:41 +0000 (00:28 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-art.el

index baabe5f65b98599dcc35a90a699484b2ffcee3bd..f40f65063a26ad0f48c8cae0f660afe3d297f8c4 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-11  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-art.el (article-treat-date): Assume that
+       gnus-article-date-headers may be a group parameter.
+
 2011-04-07  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * gnus-registry.el (gnus-registry-handle-action): More debugging.
index 97677988f0a8d45280e2a248f60ecf7263be1e34..e03c787d99502deef97399f8bfab470c9f86dfa8 100644 (file)
@@ -3407,7 +3407,11 @@ lines forward."
        (setq ended t)))))
 
 (defun article-treat-date ()
-  (article-date-ut gnus-article-date-headers t))
+  (article-date-ut (if (gnus-buffer-live-p gnus-summary-buffer)
+                      (with-current-buffer gnus-summary-buffer
+                        gnus-article-date-headers)
+                    gnus-article-date-headers)
+                  t))
 
 (defun article-date-ut (&optional type highlight date-position)
   "Convert DATE date to TYPE in the current article.