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:54 +0000 (22:49 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 6 Feb 2012 22:49:54 +0000 (22:49 +0000)
lisp/ChangeLog
lisp/gnus-sum.el

index 051d0ae..9e92a53 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-06  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-sum.el (gnus-summary-show-thread):
+       next-single-char-property-change may return nil in XEmacs.
+
 2012-02-06  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-sum.el (gnus-handle-ephemeral-exit): Allow exiting from Gnus
index c7f80ec..c17f16e 100644 (file)
@@ -11579,7 +11579,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))