(gnus-article-foldable-buffer): Protect against degenerate articles.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Mon, 1 Nov 2010 23:04:21 +0000 (00:04 +0100)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Mon, 1 Nov 2010 23:04:21 +0000 (00:04 +0100)
lisp/ChangeLog
lisp/gnus-cite.el

index 25a159d..04e4321 100644 (file)
@@ -1,5 +1,8 @@
 2010-11-01  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-cite.el (gnus-article-foldable-buffer): Protect against
+       degenerate articles.
+
        * gnus-sum.el (gnus-print-buffer): Rewrite to use with-temp-buffer.
        (gnus-print-buffer): Just print the buffer as is, without any copying
        to a buffer and then re-highlighting.
index 2d44e36..c99cb5c 100644 (file)
@@ -571,7 +571,8 @@ longer than the frame width."
        columns)
     (goto-char (point-min))
     (while (not (eobp))
-      (forward-char (length prefix))
+      (unless (> (length prefix) (- (point-max) (point)))
+       (forward-char (length prefix)))
       (skip-chars-forward " \t")
       (unless (eolp)
        (let ((elem (assq (current-column) columns)))