gnus-sum.el (gnus-summary-show-thread): next-single-char-property-change may return...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 6 Feb 2012 22:49:51 +0000 (22:49 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 6 Feb 2012 22:49:51 +0000 (22:49 +0000)
lisp/ChangeLog
lisp/gnus-sum.el

index 9ecae5a..8bce975 100644 (file)
@@ -1,6 +1,8 @@
 2012-02-06  Katsumi Yamaoka  <yamaoka@jpl.org>
 
-       * gnus-sum.el (gnus-summary-article-map): Fix typo.
+       * gnus-sum.el (gnus-summary-show-thread):
+       next-single-char-property-change may return nil in XEmacs.
+       (gnus-summary-article-map): Fix typo.
 
 2012-02-06  Lars Ingebrigtsen  <larsi@gnus.org>
 
index 45a0f0b..52eb448 100644 (file)
@@ -11592,7 +11592,10 @@ Returns nil if no thread was there to be shown."
         (beg (progn (beginning-of-line) (if (bobp) (point) (1- (point)))))
         (eoi (when end
                (if (fboundp 'next-single-char-property-change)
-                   (next-single-char-property-change end 'invisible)
+                   (if (featurep 'xemacs)
+                       (or (next-single-char-property-change end 'invisible)
+                           (point-max))
+                     (next-single-char-property-change end 'invisible))
                  (while (progn
                           (end-of-line 2)
                           (and (not (eobp))