From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#48317: 27.1; text-property-search-forward moves point to end when not found Date: Sun, 09 May 2021 21:33:49 +0300 Message-ID: <83fsyv7o4y.fsf@gnu.org> References: <0ECAF0D9-7D8C-4BAA-AFFE-B76634BD0B28@gmail.com> <83o8dj7s48.fsf@gnu.org> <616F7732-ED83-40F0-A460-9298608EAD91@gmail.com> <83lf8n7q8d.fsf@gnu.org> <8877DDB9-7D2B-4DCC-8374-EB8391134EAC@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17469"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48317@debbugs.gnu.org To: Howard Melman , Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 09 20:34:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lfoFl-0004Q3-T9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 May 2021 20:34:09 +0200 Original-Received: from localhost ([::1]:34782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfoFk-0004JZ-Ng for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 May 2021 14:34:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfoFe-0004JO-EP for bug-gnu-emacs@gnu.org; Sun, 09 May 2021 14:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45057) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfoFe-0000pm-7Q for bug-gnu-emacs@gnu.org; Sun, 09 May 2021 14:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lfoFe-0007rD-28 for bug-gnu-emacs@gnu.org; Sun, 09 May 2021 14:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 May 2021 18:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48317 X-GNU-PR-Package: emacs Original-Received: via spool by 48317-submit@debbugs.gnu.org id=B48317.162058523530191 (code B ref 48317); Sun, 09 May 2021 18:34:02 +0000 Original-Received: (at 48317) by debbugs.gnu.org; 9 May 2021 18:33:55 +0000 Original-Received: from localhost ([127.0.0.1]:56603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfoFX-0007qt-DS for submit@debbugs.gnu.org; Sun, 09 May 2021 14:33:55 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfoFV-0007qj-HI for 48317@debbugs.gnu.org; Sun, 09 May 2021 14:33:53 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40044) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfoFP-0000fd-IH; Sun, 09 May 2021 14:33:48 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1246 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfoFO-000693-Tu; Sun, 09 May 2021 14:33:47 -0400 In-Reply-To: <8877DDB9-7D2B-4DCC-8374-EB8391134EAC@gmail.com> (message from Howard Melman on Sun, 9 May 2021 14:10:56 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:206106 Archived-At: [Please use Reply All to keep the bug address on the CC list.] > From: Howard Melman > Date: Sun, 9 May 2021 14:10:56 -0400 > > >> #s(prop-match 77 224 nil) > >> > >> If I change 'foo to nil it does not move point. > > > > So in your original use case it _did_ find a match, which is why it > > moved point. > > I don't think any region in the buffer has the property 'ffffffff let alone > with the value 'foo so I don't know what it thinks it's found. What is the difference between "not having a property" and "having a property with a nil value"? > I see in the docstring: > > If PREDICATE is nil, a value will match if it is non-nil and > is NOT equal to VALUE. > > But I don't think this applies because no region in the buffer has this property. I'm trying to establish whether this is a documentation bug or a code bug. For now, I tend to think it's the former. > Can you reproduce my simple test case? > Did it find a region with a random property name? I don't think I understand the question. Lars, would you please chime in? Since you coded this stuff, I'm sure you will be able to explain its workings much better.