From unknown Wed Jun 18 22:58:46 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#8657 <8657@debbugs.gnu.org> To: bug#8657 <8657@debbugs.gnu.org> Subject: Status: 24.0.50; Emacs code that seems to use `*-single-char-property-change' incorrectly Reply-To: bug#8657 <8657@debbugs.gnu.org> Date: Thu, 19 Jun 2025 05:58:46 +0000 retitle 8657 24.0.50; Emacs code that seems to use `*-single-char-property-= change' incorrectly reassign 8657 emacs submitter 8657 "Drew Adams" severity 8657 minor tag 8657 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Wed May 11 16:55:18 2011 Received: (at submit) by debbugs.gnu.org; 11 May 2011 20:55:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKGRB-00038v-Ts for submit@debbugs.gnu.org; Wed, 11 May 2011 16:55:18 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKGR6-00038a-KE for submit@debbugs.gnu.org; Wed, 11 May 2011 16:55:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKGR0-0000eZ-Kv for submit@debbugs.gnu.org; Wed, 11 May 2011 16:55:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:49669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKGR0-0000eU-J9 for submit@debbugs.gnu.org; Wed, 11 May 2011 16:55:06 -0400 Received: from eggs.gnu.org ([140.186.70.92]:51977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKGQz-0007me-JV for bug-gnu-emacs@gnu.org; Wed, 11 May 2011 16:55:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKGQy-0000aS-7b for bug-gnu-emacs@gnu.org; Wed, 11 May 2011 16:55:05 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:20660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKGQy-0000a6-24 for bug-gnu-emacs@gnu.org; Wed, 11 May 2011 16:55:04 -0400 Received: from rtcsinet22.oracle.com (rtcsinet22.oracle.com [66.248.204.30]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p4BKt1OY017036 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 11 May 2011 20:55:03 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by rtcsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p4BKt0wc008694 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 11 May 2011 20:55:00 GMT Received: from abhmt016.oracle.com (abhmt016.oracle.com [141.146.116.25]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p4BKssRV017748 for ; Wed, 11 May 2011 15:54:54 -0500 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 11 May 2011 13:54:54 -0700 From: "Drew Adams" To: Subject: 24.0.50; Emacs code that seems to use `*-single-char-property-change' incorrectly Date: Wed, 11 May 2011 13:54:57 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcwQHa+46k3HD6rXT+io0xz826z1Iw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 X-Source-IP: rtcsinet22.oracle.com [66.248.204.30] X-CT-RefId: str=0001.0A090203.4DCAF7A7.0034:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) `(next|previous)-single-char-property-change' behaves differently in a couple of ways from `(next|previous)-single-property-change', besides the difference of overlay vs text properties. In particular, IIUC, the return value can never be nil. Yet I see code such as this: gnus-summary-show-thread: (or (next-single-char-property-change end 'invisible) (point-max)) comint-next-prompt: (setq pos (next-single-char-property-change pos 'field)) (cond (or (null pos)... Isn't this incorrect? In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2011-05-10 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.5) --no-opt --cflags -Ic:/build/include' From debbugs-submit-bounces@debbugs.gnu.org Wed May 11 23:05:57 2011 Received: (at 8657) by debbugs.gnu.org; 12 May 2011 03:05:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKMDt-0003LI-7T for submit@debbugs.gnu.org; Wed, 11 May 2011 23:05:57 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKMDr-0003L2-J8 for 8657@debbugs.gnu.org; Wed, 11 May 2011 23:05:56 -0400 Received: from 121-249-126-200.fibertel.com.ar ([200.126.249.121]:17643 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QKMDl-0002jl-IG; Wed, 11 May 2011 23:05:49 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 2CBBE66152; Thu, 12 May 2011 00:05:46 -0300 (ART) From: Stefan Monnier To: "Drew Adams" Subject: Re: bug#8657: 24.0.50; Emacs code that seems to use `*-single-char-property-change' incorrectly Message-ID: References: Date: Thu, 12 May 2011 00:05:46 -0300 In-Reply-To: (Drew Adams's message of "Wed, 11 May 2011 13:54:57 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: 8657 Cc: 8657@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) > In particular, IIUC, the return value can never be nil. > Yet I see code such as this: > gnus-summary-show-thread: > (or (next-single-char-property-change end 'invisible) (point-max)) > comint-next-prompt: > (setq pos (next-single-char-property-change pos 'field)) > (cond (or (null pos)... > Isn't this incorrect? The behavior might have changed at some point in time, explaining the above code. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu May 12 00:44:42 2011 Received: (at 8657) by debbugs.gnu.org; 12 May 2011 04:44:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKNlR-0005gF-Ok for submit@debbugs.gnu.org; Thu, 12 May 2011 00:44:42 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKNlP-0005g3-8i for 8657@debbugs.gnu.org; Thu, 12 May 2011 00:44:39 -0400 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QKNlJ-0001p9-CC; Thu, 12 May 2011 00:44:33 -0400 Date: Thu, 12 May 2011 00:44:33 -0400 Message-Id: From: Eli Zaretskii To: Stefan Monnier In-reply-to: (message from Stefan Monnier on Thu, 12 May 2011 00:05:46 -0300) Subject: Re: bug#8657: 24.0.50; Emacs code that seems to use `*-single-char-property-change' incorrectly References: X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 8657 Cc: 8657@debbugs.gnu.org, drew.adams@oracle.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) > From: Stefan Monnier > Date: Thu, 12 May 2011 00:05:46 -0300 > Cc: 8657@debbugs.gnu.org > > > In particular, IIUC, the return value can never be nil. > > Yet I see code such as this: > > > gnus-summary-show-thread: > > (or (next-single-char-property-change end 'invisible) (point-max)) > > > comint-next-prompt: > > (setq pos (next-single-char-property-change pos 'field)) > > (cond (or (null pos)... > > > Isn't this incorrect? > > The behavior might have changed at some point in time, explaining the > above code. Or maybe the author was confusing next-single-char-property-change with next-single-property-change. In any case, those tests are redundant, because next-single-char-property-change already returns point-max when it finds no change in properties. From debbugs-submit-bounces@debbugs.gnu.org Thu May 12 09:44:46 2011 Received: (at 8657) by debbugs.gnu.org; 12 May 2011 13:44:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKWC5-0002pa-R2 for submit@debbugs.gnu.org; Thu, 12 May 2011 09:44:46 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKWC0-0002pA-TW for 8657@debbugs.gnu.org; Thu, 12 May 2011 09:44:41 -0400 Received: from rtcsinet22.oracle.com (rtcsinet22.oracle.com [66.248.204.30]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p4CDiX1V014414 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 12 May 2011 13:44:35 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rtcsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p4CDiVeE027792 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 May 2011 13:44:32 GMT Received: from abhmt008.oracle.com (abhmt008.oracle.com [141.146.116.17]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p4CDiQiv007461; Thu, 12 May 2011 08:44:26 -0500 Received: from dradamslap1 (/10.159.37.175) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 12 May 2011 06:44:25 -0700 From: "Drew Adams" To: "'Eli Zaretskii'" , "'Stefan Monnier'" References: Subject: RE: bug#8657: 24.0.50; Emacs code that seems to use `*-single-char-property-change'incorrectly Date: Thu, 12 May 2011 06:44:22 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcwQX1At989xFiCUR6mtM6CO21ZcuAAS0jjA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 In-Reply-To: X-Source-IP: rtcsinet22.oracle.com [66.248.204.30] X-CT-RefId: str=0001.0A090204.4DCBE443.0096:SCFSTAT5015188,ss=1,fgs=0 X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: 8657 Cc: 8657@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > Or maybe the author was confusing next-single-char-property-change > with next-single-property-change. > > In any case, those tests are redundant, because > next-single-char-property-change already returns point-max when it > finds no change in properties. Yes, what Eli says is what I was suggesting; that's my guess too. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 06 09:01:39 2012 Received: (at 8657) by debbugs.gnu.org; 6 Feb 2012 14:01:39 +0000 Received: from localhost ([127.0.0.1]:56528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuP8Q-0003J9-9Y for submit@debbugs.gnu.org; Mon, 06 Feb 2012 09:01:39 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:45203 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuP8H-0003Iu-DZ for 8657@debbugs.gnu.org; Mon, 06 Feb 2012 09:01:30 -0500 Received: from bb121-7-229-69.singnet.com.sg ([121.7.229.69]:58601 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RuP7R-0002xd-VH; Mon, 06 Feb 2012 09:00:35 -0500 From: Chong Yidong To: Eli Zaretskii Subject: Re: bug#8657: 24.0.50; Emacs code that seems to use `*-single-char-property-change' incorrectly References: Date: Mon, 06 Feb 2012 22:00:21 +0800 In-Reply-To: (Eli Zaretskii's message of "Thu, 12 May 2011 00:44:33 -0400") Message-ID: <87bopcnjt6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 8657 Cc: 8657@debbugs.gnu.org, Stefan Monnier , drew.adams@oracle.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Eli Zaretskii writes: >> The behavior might have changed at some point in time, explaining the >> above code. > > Or maybe the author was confusing next-single-char-property-change > with next-single-property-change. > > In any case, those tests are redundant, because > next-single-char-property-change already returns point-max when it > finds no change in properties. I went ahead and fixed them accordingly. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 06 09:01:40 2012 Received: (at control) by debbugs.gnu.org; 6 Feb 2012 14:01:40 +0000 Received: from localhost ([127.0.0.1]:56530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuP8V-0003JJ-CO for submit@debbugs.gnu.org; Mon, 06 Feb 2012 09:01:39 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:45207 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuP8P-0003J7-CG for control@debbugs.gnu.org; Mon, 06 Feb 2012 09:01:34 -0500 Received: from bb121-7-229-69.singnet.com.sg ([121.7.229.69]:58602 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RuP7a-0002yV-LB for control@debbugs.gnu.org; Mon, 06 Feb 2012 09:00:43 -0500 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 8657 Date: Mon, 06 Feb 2012 22:00:35 +0800 Message-ID: <8762fkf4e4.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) close 8657 thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 06 17:57:14 2012 Received: (at 8657) by debbugs.gnu.org; 6 Feb 2012 22:57:14 +0000 Received: from localhost ([127.0.0.1]:57757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuXUo-0003PN-7g for submit@debbugs.gnu.org; Mon, 06 Feb 2012 17:57:14 -0500 Received: from orlando.hostforweb.net ([216.246.45.90]:59905) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuXUm-0003PG-Jg for 8657@debbugs.gnu.org; Mon, 06 Feb 2012 17:57:13 -0500 Received: from localhost ([127.0.0.1]:37208) by orlando.hostforweb.net with smtp (Exim 4.69) (envelope-from ) id 1RuXTs-0005XJ-Ez; Mon, 06 Feb 2012 16:56:17 -0600 Date: Tue, 07 Feb 2012 07:56:54 +0900 Message-ID: From: Katsumi Yamaoka To: Chong Yidong Subject: Re: bug#8657: 24.0.50; Emacs code that seems to use `*-single-char-property-change' incorrectly References: <87bopcnjt6.fsf@gnu.org> Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130002 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.2) Emacs/24.0.93 (i686-pc-cygwin) Cancel-Lock: sha1:5XpPKyllXvB7y9c2eTsMZZ+x+1U= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 8657 Cc: Eli Zaretskii , 8657@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Chong Yidong wrote: > Eli Zaretskii writes: >>> The behavior might have changed at some point in time, explaining the >>> above code. >> >> Or maybe the author was confusing next-single-char-property-change >> with next-single-property-change. >> >> In any case, those tests are redundant, because >> next-single-char-property-change already returns point-max when it >> finds no change in properties. > I went ahead and fixed them accordingly. But in XEmacs next-single-char-property-change will return nil if no property change is found. 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)) From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 07 00:58:51 2012 Received: (at 8657) by debbugs.gnu.org; 7 Feb 2012 05:58:51 +0000 Received: from localhost ([127.0.0.1]:58051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rue4o-0007xe-GV for submit@debbugs.gnu.org; Tue, 07 Feb 2012 00:58:51 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:60980 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rue4m-0007xY-KA for 8657@debbugs.gnu.org; Tue, 07 Feb 2012 00:58:49 -0500 Received: from [155.69.16.237] (port=57768 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Rue3r-0000b4-T6; Tue, 07 Feb 2012 00:57:52 -0500 From: Chong Yidong To: Katsumi Yamaoka Subject: Re: bug#8657: 24.0.50; Emacs code that seems to use `*-single-char-property-change' incorrectly References: <87bopcnjt6.fsf@gnu.org> Date: Tue, 07 Feb 2012 13:57:45 +0800 In-Reply-To: (Katsumi Yamaoka's message of "Tue, 07 Feb 2012 07:56:54 +0900") Message-ID: <87obtbxk12.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 8657 Cc: Eli Zaretskii , 8657@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Katsumi Yamaoka 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. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 07 01:34:36 2012 Received: (at 8657) by debbugs.gnu.org; 7 Feb 2012 06:34:36 +0000 Received: from localhost ([127.0.0.1]:58105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuedN-0000Qu-Lu for submit@debbugs.gnu.org; Tue, 07 Feb 2012 01:34:35 -0500 Received: from orlando.hostforweb.net ([216.246.45.90]:42829) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuedE-0000Qe-Kv for 8657@debbugs.gnu.org; Tue, 07 Feb 2012 01:34:31 -0500 Received: from localhost ([127.0.0.1]:50571) by orlando.hostforweb.net with smtp (Exim 4.69) (envelope-from ) id 1RuecD-0001MC-UP; Tue, 07 Feb 2012 00:33:23 -0600 Date: Tue, 07 Feb 2012 15:34:01 +0900 Message-ID: From: Katsumi Yamaoka To: Chong Yidong Subject: Re: bug#8657: 24.0.50; Emacs code that seems to use `*-single-char-property-change' incorrectly References: <87bopcnjt6.fsf@gnu.org> <87obtbxk12.fsf@gnu.org> Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130002 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.2) Emacs/24.0.93 (i686-pc-cygwin) Cancel-Lock: sha1:ZeDjsCOS+RuwQkqvDZjJXyNzWg8= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 8657 Cc: Eli Zaretskii , 8657@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Chong Yidong wrote: > Katsumi Yamaoka 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. Ok. Done. From unknown Wed Jun 18 22:58:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 06 Mar 2012 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator