(gnus-summary-insert-line): Trap errors on setting the summary line
authorTeodor Zlatanov <tzz@lifelogs.com>
Thu, 11 Sep 2008 12:48:08 +0000 (12:48 +0000)
committerTeodor Zlatanov <tzz@lifelogs.com>
Thu, 11 Sep 2008 12:48:08 +0000 (12:48 +0000)
gnus-number property and ignore them (with a warning message).

lisp/ChangeLog
lisp/gnus-sum.el

index 3ace6f0..1c5e8a1 100644 (file)
@@ -1,3 +1,9 @@
+2008-09-11  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * gnus-sum.el (gnus-summary-insert-line): Trap errors on setting the
+       summary line gnus-number property and ignore them (with a warning
+       message).
+
 2008-09-08  David Engster  <dengste@eml.cc>
 
        * nnmairix.el (nnmairix-create-server-and-default-group): Require match
index edec081..4f6a565 100644 (file)
@@ -3740,10 +3740,12 @@ buffer that was in action when the last article was fetched."
     (if (= gnus-tmp-lines -1)
        (setq gnus-tmp-lines "?")
       (setq gnus-tmp-lines (number-to-string gnus-tmp-lines)))
-      (gnus-put-text-property
-     (point)
-     (progn (eval gnus-summary-line-format-spec) (point))
-       'gnus-number gnus-tmp-number)
+    (condition-case ()
+       (gnus-put-text-property
+        (point)
+        (progn (eval gnus-summary-line-format-spec) (point))
+        'gnus-number gnus-tmp-number)
+      (error (gnus-message 5 "Error updating the summary line")))
     (when (gnus-visual-p 'summary-highlight 'highlight)
       (forward-line -1)
       (gnus-run-hooks 'gnus-summary-update-hook)
@@ -5351,15 +5353,15 @@ or a straight list of headers."
                (setq gnus-tmp-lines "?")
              (setq gnus-tmp-lines (number-to-string gnus-tmp-lines)))
               (gnus-put-text-property
-            (point)
-            (progn (eval gnus-summary-line-format-spec) (point))
+              (point)
+              (progn (eval gnus-summary-line-format-spec) (point))
                'gnus-number number)
-           (when gnus-visual-p
-             (forward-line -1)
-             (gnus-run-hooks 'gnus-summary-update-hook)
-             (forward-line 1))
+             (when gnus-visual-p
+               (forward-line -1)
+               (gnus-run-hooks 'gnus-summary-update-hook)
+               (forward-line 1))
 
-           (setq gnus-tmp-prev-subject simp-subject)))
+             (setq gnus-tmp-prev-subject simp-subject)))
 
        (when (nth 1 thread)
          (push (list (max 0 gnus-tmp-level)