From: Chong Yidong Date: Mon, 6 Feb 2012 13:59:13 +0000 (+0800) Subject: Another minor fix for next-single-char-property-change. X-Git-Tag: emacs-pretest-24.0.94~279 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ada3c434500c0a0b079e42a3d751ff9d56dd0ed4;p=emacs.git Another minor fix for next-single-char-property-change. * gnus/gnus-sum.el (gnus-summary-show-thread): next-single-char-property-change never returns nil (Bug#8657). --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 740a2340243..493734dc7bf 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,8 @@ +2012-02-06 Chong Yidong + + * gnus-sum.el (gnus-summary-show-thread): + next-single-char-property-change never returns nil (Bug#8657). + 2012-02-05 Lars Ingebrigtsen * nnimap.el (nnimap-open-server): Allow switching the nnoo server diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index d0a582e2712..7b234a3df22 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el @@ -11579,8 +11579,7 @@ 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) - (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))