GNU bug report logs - #8657
24.0.50; Emacs code that seems to use `*-single-char-property-change' incorrectly

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Wed, 11 May 2011 20:56:02 UTC

Severity: minor

Tags: notabug

Found in version 24.0.50

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #25 received at 8657 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 8657 <at> debbugs.gnu.org
Subject: Re: bug#8657: 24.0.50;
	Emacs code that seems to use `*-single-char-property-change'
	incorrectly
Date: Tue, 07 Feb 2012 13:57:45 +0800
Katsumi Yamaoka <yamaoka <at> jpl.org> writes:

> But in XEmacs next-single-char-property-change will return nil
> if no property change is found.

Ah OK, thanks for checking.

> So I've modified the gnus-sum.el code into:
>
>   (if (featurep 'xemacs)
>       (or (next-single-char-property-change end 'invisible)
>           (point-max))
>     (next-single-char-property-change end 'invisible))

I suggest just restoring the old code, and adding a comment about why
the `or' is there.




This bug report was last modified 13 years and 106 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.