(article-date-ut): Fix previous commit.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 13 Jan 2009 22:08:01 +0000 (22:08 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 13 Jan 2009 22:08:01 +0000 (22:08 +0000)
lisp/gnus-art.el

index 54b3c0e..d29a763 100644 (file)
@@ -3405,11 +3405,13 @@ should replace the \"Date:\" one, or should be added below it."
                     (setq date (get-text-property pos 'original-date))
                     t))
          (narrow-to-region
-          pos (if (goto-char (text-property-any pos (point-max)
-                                                'original-date nil))
-                  (if (or (bolp) (eobp))
-                      (point)
-                    (1+ (point)))
+          pos (if (setq pos (text-property-any pos (point-max)
+                                               'original-date nil))
+                  (progn
+                    (goto-char pos)
+                    (if (or (bolp) (eobp))
+                        (point)
+                      (1+ (point))))
                 (point-max)))
          (goto-char (point-min))
          (when (re-search-forward tdate-regexp nil t)