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 14:32:31 +0200 Message-ID: <87fsytpi1s.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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31662"; 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 14:35:57 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 1lgRcC-00084S-TO for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 14:35:56 +0200 Original-Received: from localhost ([::1]:52138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgRc6-0003gs-TT for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 08:35:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgRZR-0000dy-Nq for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 08:33:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51959) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgRZN-0008QI-MW for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 08:33:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lgRZN-00077a-Jv for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 08:33:01 -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 12:33: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.162073636827355 (code B ref 48317); Tue, 11 May 2021 12:33:01 +0000 Original-Received: (at 48317) by debbugs.gnu.org; 11 May 2021 12:32:48 +0000 Original-Received: from localhost ([127.0.0.1]:35272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgRZA-000778-8n for submit@debbugs.gnu.org; Tue, 11 May 2021 08:32:48 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:46142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgRZ8-000734-6c for 48317@debbugs.gnu.org; Tue, 11 May 2021 08:32:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=l0z4nGXfUxtfpuMw3jWFYKpKW3dusWrtLU4O9B6RRII=; b=Ho9ReE9QfleDSQ1+DnSCBxnvZ3 fHyBaBQyVy+mTWUPXcWsVCRGQxBNouGIvgywk+xrTSk2srDqmfLKOysCrYg8yCZz8v9m5nHtRM0RA PHiYUBIi/blWNeA0DLppt0cklReGxs9MRLSAkp+JuH5oLqIhBSEokDoH3gcN1rX0rhrQ=; 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 1lgRYu-0004lK-5D; Tue, 11 May 2021 14:32:34 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJ1BMVEUxKihGNCpVRS9k NSVhVURsUC2KYSowOkd7ZTwwQVOMdU6niU7///8670f3AAAAAWJLR0QMgbNRYwAAAAd0SU1FB+UF CwwCOfGVOw4AAAGrSURBVDjLdVOxTsMwED27ChHbnUOYY4uUiomqYgfEBySh6cDGEMSYDbFWdGFC CKniT/g8zkna2C6c2lrJe3f37p0LMIRAIMEnH0bh8DLjZ34pRPdkFIxBzEHOEJbrAbsfm0kOwEwE ednVOrkhHJGuRNGTCBzARl32ALfygdUAQK9hjDSDIHoOyT2vdQGifQGn0uSeiHqKFxg1RNgR3b6C SDW7iYU7Nzcu9764Srkt9cfgwb5WVKSICHnNm/AslFYrospXmZfBUjV3zaiq/VpMJqtNNpkPsM8C WadqEP3maIcjTE0RmMh0+0k3IWALS1PKMlid1YXRU8klQyDSGG3m886P1gWUwaPHZHEIsNapZoD9 iF0g5ouRJ4sr4ksYe4ti1jRbJDbjxWvO+aeaBI8Zb31l3y1vly9uvG19T+ItD5NwIb+SEPk5QJIA fpjljQfJqgWaAHzVd9eBX7H9bxx/hp5IiDUq/dqGV07O8rVOK6N1mPJgjJbV7PYAEN1XnXVTBO6n euzoplRv7wX+AcDz8uKnGBbqAYpoPSRnwa6cPXhGHqgZaQT/hOPHLysFLiUgmIu1AAAAJXRFWHRk YXRlOmNyZWF0ZQAyMDIxLTA1LTExVDEyOjAyOjU3KzAwOjAweBFhsAAAACV0RVh0ZGF0ZTptb2Rp ZnkAMjAyMS0wNS0xMVQxMjowMjo1NyswMDowMAlM2QwAAAAASUVORK5CYII= X-Now-Playing: Coil's _Love's Secret Domain (1)_: "Teenage Lightning 2" In-Reply-To: <4E8819BD-AA07-4870-8A90-98FB1F3D45E4@gmail.com> (Howard Melman's message of "Mon, 10 May 2021 09:06:08 -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:206224 Archived-At: Howard Melman writes: > What threw me (and I still think is problematic) is this line from the do= cstring: > > If not found, return nil and don't move point. > > And this line from the manual: > > If the text property can=E2=80=99t be found, the function returns = =E2=80=98nil=E2=80=99. I've now fixed the doc string in Emacs 28. > Which I assume also infers point is not moved. If no region has the > named property I can't see how it can be found and therefore point > should not be moved. In fact I don't see how predicate even comes > into play in this case. 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.) --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no