From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Howard Melman 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 10:20:01 -0400 Message-ID: <53218944-7009-4BA7-AE3D-BF025EFD41AF@gmail.com> 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> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.6\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15418"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48317@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 11 16:21:29 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 1lgTGK-0003tL-NE for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 16:21:28 +0200 Original-Received: from localhost ([::1]:40020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgTGJ-000722-MT for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 10:21:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgTFu-0006vo-LB for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 10:21:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53709) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgTFu-0007hS-Cn for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 10:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lgTFu-0006S3-8y for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 10:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Howard Melman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 May 2021 14:21: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.162074281024717 (code B ref 48317); Tue, 11 May 2021 14:21:02 +0000 Original-Received: (at 48317) by debbugs.gnu.org; 11 May 2021 14:20:10 +0000 Original-Received: from localhost ([127.0.0.1]:37022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgTF4-0006Qb-8o for submit@debbugs.gnu.org; Tue, 11 May 2021 10:20:10 -0400 Original-Received: from mail-qt1-f172.google.com ([209.85.160.172]:39547) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgTF2-0006QK-Oj for 48317@debbugs.gnu.org; Tue, 11 May 2021 10:20:09 -0400 Original-Received: by mail-qt1-f172.google.com with SMTP id f8so10495005qth.6 for <48317@debbugs.gnu.org>; Tue, 11 May 2021 07:20:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=U0pSUKLLkQD9mJbxtjlxlmQf3PJgQQB1bRBpgkCqbF8=; b=Puwd3K9wnT6lM0fY+OUvNc/oIZASRbWNa9r72VSd4iEylp8ERJcvRn8wsQbZrev/2n 1XlWw8B2lTfpn01N7Q2BTKGGhsyu81GhIHLf+RABZPzc/oTew1CCqk4ebURZWHW9j/Qd JSpQGO2cxgU0p/d8Spqe6bx93I2H0z9ckVcOfQjgpJfn29KfZS5BnsGGOp3In5BGTocj fQ4Vu98J1uWi5luYj58glXxmcv1knuIqODpaXjMy8Wl5L43FgPP8ynQIMNxiEVbmvaqB fn1iHeCZPXd5SZViTdkG1AOufacBCbC2CnOpUZuc37vyv3D5ySNYAHgcn+AI45s+/yt5 BlMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=U0pSUKLLkQD9mJbxtjlxlmQf3PJgQQB1bRBpgkCqbF8=; b=eiTSsnIMXwm34nMll9N+ulrkhPEHmynX5hUEXzQ/RUMheY7UEL/W2fq+qd8my9vXfY zUwsFoanVvGyZ3z0+cJoTeq+6FZr7wL+Aui0tVL/OwNe7Q8H3tr1Fng9SZtLqOVxH6TR i1OUVW8MO/z2uiBLGsZoXTp+37ITUV6l0mEIhep4U3U5WLXv6tO21JRPvdH+RwA+spce +T2tXT0yVzX9Qac2VFGY8dkMTR16CflEePigZnHY4Pf32/WCuGtp1BlbWx8BnIHPz8v+ jnzfuBGCSa5cSrNjtHlceg6hVgxQWIrQV0QQV1YhI3wKpAvlUpujG101tyvGUU+xSoZY O5DA== X-Gm-Message-State: AOAM532KSdKW6kBFDQQEGfd2eVA5LGv3htPbs/F+1gnDACcjT84RqB0w yYJIM0svXMamnp2zSCrWHoA= X-Google-Smtp-Source: ABdhPJzy4N+FINs4sRMM/1+dSl2wrmOPNjuWdoD4204YDdsubpD+OiCczhGEEH7xqz0nLn/VEiJpKQ== X-Received: by 2002:a05:622a:113:: with SMTP id u19mr5238177qtw.323.1620742803155; Tue, 11 May 2021 07:20:03 -0700 (PDT) Original-Received: from lumet2.home (pool-108-26-204-101.bstnma.fios.verizon.net. [108.26.204.101]) by smtp.gmail.com with ESMTPSA id g140sm12954243qke.32.2021.05.11.07.20.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 May 2021 07:20:02 -0700 (PDT) In-Reply-To: <87fsytpi1s.fsf@gnus.org> X-Mailer: Apple Mail (2.3608.120.23.2.6) 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:206247 Archived-At: On May 11, 2021, at 8:32 AM, Lars Ingebrigtsen wrote: >=20 >> 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. >=20 > I'm sorry, I don't follow you. It this still about >=20 > (text-property-search-forward 'facet 'foo) >=20 > ? 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" 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.=20 If I set the predicate to t point is not moved which is what I want, but I don't see why that should be the case. Does Emacs check for properties with equal? I think the bug is in the test commented as "We're standing in the property we're looking for, so find the end" because the test is matched because (get-text-property (point) property) returns nil and text-property--match-p is called with (my-package-face nil nil)=20 and returns non-nil. I don't think this test should match because point is not in the property unused-property. Howard