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: Sun, 9 May 2021 15:48:41 -0400 Message-ID: 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> 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="38983"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 48317@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 09 21:49:10 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 1lfpQL-000A1O-SI for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 May 2021 21:49:09 +0200 Original-Received: from localhost ([::1]:50372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfpQK-00043K-Ug for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 May 2021 15:49:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfpQE-00042W-Fz for bug-gnu-emacs@gnu.org; Sun, 09 May 2021 15:49:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45108) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfpQE-0005Un-8G for bug-gnu-emacs@gnu.org; Sun, 09 May 2021 15:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lfpQE-0001DT-5R for bug-gnu-emacs@gnu.org; Sun, 09 May 2021 15:49: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: Sun, 09 May 2021 19:49: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.16205897334659 (code B ref 48317); Sun, 09 May 2021 19:49:02 +0000 Original-Received: (at 48317) by debbugs.gnu.org; 9 May 2021 19:48:53 +0000 Original-Received: from localhost ([127.0.0.1]:56654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfpQ5-0001D5-9p for submit@debbugs.gnu.org; Sun, 09 May 2021 15:48:53 -0400 Original-Received: from mail-qv1-f45.google.com ([209.85.219.45]:38478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfpQ0-0001Co-2N for 48317@debbugs.gnu.org; Sun, 09 May 2021 15:48:51 -0400 Original-Received: by mail-qv1-f45.google.com with SMTP id jm10so7382184qvb.5 for <48317@debbugs.gnu.org>; Sun, 09 May 2021 12:48:47 -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=aBBYrAGhpSBgyRXWc4E6VNQMtScvel6BqO5wXizd0Ig=; b=i7GoZuh3GjAlED1SPzBGZ5uMYOU7DsRycoz6ZwgNAQWVdHjQOnbYlXeLBeS2dG4jRO 3Uo4YpC0jhvbdXrkwTVvqHrC9I6ogdqT0KJafPrGBoS4vw1nu+D//lj6cE49JJpcClEc xRF+qjILnWWYpmb8yOzEMa+kOAdu10wNt/uVNBYxKmGAvk1CLbsRURAbyyPtkfSU1zxW n9aEVoi0Qq+6czrbmYC5w5oGcTOHER7eYl4CyDT4H/z0evdv1KyKnFy6Ut+6/qJ2Rh5e rZ+WP+b+2wwh0Uqr1WaleQghvajIb9/qwlPDSVHfSX/d3P+mSBpqapCN3muKKqReEpb2 u0XQ== 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=aBBYrAGhpSBgyRXWc4E6VNQMtScvel6BqO5wXizd0Ig=; b=XyIq5rXlZwJOtTd2QrdRNEUJaR4ZTUgLA7GmqBBrv6cuBbMlS1ssAb0SnAz0vmXMVV AifeJNSmg8GkNykd77/o0I/NK1oKQAmGulz8wmocKGEheZ8d7zDPTqD1iYA/cfRCXejW pltEmemLtBPslupethD2GqGavexFJTvobOiRBCy6HVrH0yyTJMFonoLML1/YccBNQRWz GsqazyvhnxaC9AUEOw5BHxUCKnnNqa68Gb0pfDc3C2l5YJWinKAYz0PKFAfYrwMcD24p 2DaU4LfXLBFBAwNndWb8yCaC3W5k2LAvj8glWHqNNfzTmvCCeWzxARTfRCelZn2r540Y wB+A== X-Gm-Message-State: AOAM533vVXLQxMbAHmZHK2k3FxfcvAHUvpFHBSLvLrhXIb06lk7udchN 787fRJPFbhOe2DSQ6tu5v5w= X-Google-Smtp-Source: ABdhPJwyQJRvrVvrdCJ8T6X/G7xylOQCTdM24lOsFTh2Oq2WMLGR+ROimgwn7VSHPcIlVGojSPyxbA== X-Received: by 2002:a05:6214:c2e:: with SMTP id a14mr20457450qvd.34.1620589722205; Sun, 09 May 2021 12:48:42 -0700 (PDT) Original-Received: from lumet2.home (pool-108-26-232-211.bstnma.fios.verizon.net. [108.26.232.211]) by smtp.gmail.com with ESMTPSA id v8sm8089332qkg.102.2021.05.09.12.48.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 May 2021 12:48:41 -0700 (PDT) In-Reply-To: <83fsyv7o4y.fsf@gnu.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:206111 Archived-At: On May 9, 2021, at 2:33 PM, Eli Zaretskii wrote: >=20 > [Please use Reply All to keep the bug address on the CC list.] My apologies. > What is the difference between "not having a property" and "having a > property with a nil value"? I don't think this function should move point in either case. > 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. FWIW, I would have appreciated some less oblique confirmation that you = could=20 in fact reproduce my problem, particularly since I explicitly asked if = you could and you declined to answer it. I think it's the latter. I now see the bug seems to be in the test = commented as "We're standing in the property we're looking for" which is not the = case. My actual use case is trying to find a region with a specific face = property. =20 (text-property-search-forward 'face 'my-package-face) When there's a region with this face it works great. In the cases where = there=20 is no region with this face property it moves point and I don't see why = it should. Based on my reading of the manual this is the appropriate function for = that use,=20 if not I'd appreciate a pointer to one. In creating a small reproducible test case it turns out it also moves = point when=20 searching for a non-existing property if passed a value. Howard