From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#48317: 27.1; text-property-search-forward moves point to end when not found Date: Tue, 11 May 2021 18:36:40 +0200 Message-ID: <87mtt1kz1j.fsf@gnus.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> <83fsyv7o4y.fsf@gnu.org> <87mtt3c62q.fsf@gnus.org> <4E8819BD-AA07-4870-8A90-98FB1F3D45E4@gmail.com> <87fsytpi1s.fsf@gnus.org> <53218944-7009-4BA7-AE3D-BF025EFD41AF@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3804"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 48317@debbugs.gnu.org To: Howard Melman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 11 18:37:45 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 1lgVOD-0000jG-1U for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 18:37:45 +0200 Original-Received: from localhost ([::1]:48298 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgVO6-0007ah-Gw for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 12:37:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgVNX-0007aR-RY for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 12:37:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgVNW-0004wy-E2 for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 12:37:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lgVNW-0003hj-9M for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 12:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 May 2021 16:37: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.162075101214221 (code B ref 48317); Tue, 11 May 2021 16:37:02 +0000 Original-Received: (at 48317) by debbugs.gnu.org; 11 May 2021 16:36:52 +0000 Original-Received: from localhost ([127.0.0.1]:37227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgVNL-0003hJ-MM for submit@debbugs.gnu.org; Tue, 11 May 2021 12:36:51 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:48918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgVNK-0003h5-0h for 48317@debbugs.gnu.org; Tue, 11 May 2021 12:36:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ayG6TT3zrJuVaFQ2gDT9VCqK4o/Fs/P/ofJTCUGKgjo=; b=WFgir471MGhMNGAQ1pj1XuvH2u +DKMSDpHza3Xbl4o9/GPiznWaD/wUNF6Om89DwfH6pK8fcMDpqqlz8ygM7eV4nK2N92V2lYBuDz9M 7i6dlimbBdwuJjg98Z7Lx7EGoq01Xl/W8PUwH2hktt1FAvdgZcsn5Me/4bVBxvfEujEg=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lgVNB-0007So-16; Tue, 11 May 2021 18:36:43 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEXo3LLLxrOJfXRn ZVscGhNFOzb///9zooAFAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+UFCxAZODqYmhYAAAGpSURBVDjL nZRLuqQgDIXRuwGjn/MGZF7y2ICSBViY/W+lAz6rrzXpM6gB/3fIIUkpxC814llVIyr1CKQC981S BJ1jaXdJqbGAIbJ8vGveAJqID0AO0zCvTw4zkn5ygFbvkB5r2ICPNbSnx1QS+hwXU/j3KtHTLDw5 HdYPsGkIShXLHD6Bsa3S2YHZt4OaWzMs0LoMiC7w86qbYRSdI2TDBSoDSgySDcg32euq2rYSvCwV 4gxX8UrLulGwPWPWdIL6D5RcfKDj4q939Eu2iS7EqaKKjbgDI0WV2sYQLY0Gs8bJ72BMjbbdSvQS /ciOpd+An0Bpy+NdOWp+JHTTBhBKo1LqI7ocgXbA5VQbUI3KY4g0c5Ud+MjPSG0IK4NAhAdw0Sr9 7krTKec9gCXH5QceBQOPK743sDqXeDE9F0ZK3MoTWE2UbGk45h86wJinmkLKWeMaz1QklSlTpc9l CCTb2+pcwBCA3g4w0g34BNDa4iG8A91UwOj3VXkbW2XOU97VG3DnVvOS1RfozqTTts8H0Oc+v/L8 T3He47/87YNRFubL5wSgAfEf+gvMZqt+vS6oGgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wNS0x MVQxNjoyNTo1NiswMDowMKRvoioAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDUtMTFUMTY6MjU6 NTYrMDA6MDDVMhqWAAAAAElFTkSuQmCC X-Now-Playing: Seigen Ono's _Comme des =?UTF-8?Q?Gar=C3=A7ons?= Volume Two_: "You Will Be All Right" In-Reply-To: <53218944-7009-4BA7-AE3D-BF025EFD41AF@gmail.com> (Howard Melman's message of "Tue, 11 May 2021 10:20:01 -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:206256 Archived-At: Howard Melman writes: >> I'm sorry, I don't follow you. It this still about >> >> (text-property-search-forward 'facet 'foo) >> >> ? That works as designed, as far as I can tell. (But not as documented >> in the Emacs 27.1 doc string.) > > Yes, Note that says "facet" and not "face" Yes, that the text property you're looking for is called `facet'? > To be more clear, I find when calling: > > (text-property-search-forward 'unused-property 'my-package-face) > > when no text in the buffer has the property unused-property, that > calling text-property-search-forward moves point to eob. > > Is this intended behavior? If so I don't understand why. I'm not sure I understand what you're not understanding. :-) You're using nil as the PREDICATE here (a missing parameter is nil), which means that you're searching for areas in the buffer where the text property `facet' is not equal to `foo'. Which is the rest of the buffer. If you're looking for a portion of the buffer where `unused-property' is `my-package-face', then you should say: (text-property-search-forward 'unused-property 'my-package-face t) or (text-property-search-forward 'unused-property 'my-package-face #'eq) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no