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 20:07:51 +0300 Message-ID: <83o8dj7s48.fsf@gnu.org> References: <0ECAF0D9-7D8C-4BAA-AFFE-B76634BD0B28@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23959"; mail-complaints-to="usenet@ciao.gmane.io" 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 Sun May 09 19:08:22 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 1lfmuk-00065t-N5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 May 2021 19:08:22 +0200 Original-Received: from localhost ([::1]:48964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfmui-0004X2-Nw for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 May 2021 13:08:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfmuS-0004Wn-8c for bug-gnu-emacs@gnu.org; Sun, 09 May 2021 13:08:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44806) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfmuQ-0007Md-6K for bug-gnu-emacs@gnu.org; Sun, 09 May 2021 13:08:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lfmuQ-00062P-0O for bug-gnu-emacs@gnu.org; Sun, 09 May 2021 13:08: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 17:08:01 +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.162058007723203 (code B ref 48317); Sun, 09 May 2021 17:08:01 +0000 Original-Received: (at 48317) by debbugs.gnu.org; 9 May 2021 17:07:57 +0000 Original-Received: from localhost ([127.0.0.1]:56352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfmuK-00062B-QH for submit@debbugs.gnu.org; Sun, 09 May 2021 13:07:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfmuJ-000624-Mn for 48317@debbugs.gnu.org; Sun, 09 May 2021 13:07:55 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38288) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfmuD-0007FE-Qu; Sun, 09 May 2021 13:07:49 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3904 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 1lfmuC-0003iv-C7; Sun, 09 May 2021 13:07:49 -0400 In-Reply-To: <0ECAF0D9-7D8C-4BAA-AFFE-B76634BD0B28@gmail.com> (message from Howard Melman on Sun, 9 May 2021 12:41:17 -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:206092 Archived-At: > From: Howard Melman > Date: Sun, 9 May 2021 12:41:17 -0400 > > > The documentation of function text-property-search-forward says: > > If not found, return nil and don’t move point. > > Yet I find it moves point to eob. > > To reproduce in emacs -Q, with point at beginning of *scratch* buffer with > text in it, eval: > > (require 'text-property-search) > (text-property-search-forward 'facet 'foo) > > point is moved to end of buffer. How do you know it "didn't find" in this case? what was the value it returned?