Subject: Re: bug#48317: 27.1; text-property-search-forward moves point to end when not found

From: Eli Zaretskii <[email-masked]>
Date: Sun, 09 May 2021 20:48:34 +0300

[Please use Reply All to keep the bug address on the CC list.]

> From: Howard Melman <[email-masked]>
> Date: Sun, 9 May 2021 13:28:09 -0400
> 
> > On May 9, 2021, at 1:07 PM, Eli Zaretskii <[email-masked]> wrote:
> > 
> >> 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?
> 
> It returned (from *Messages*):
> 
> #s(prop-match 75 222 nil)
> 
> I tried again with an explicative-laden property name and the value 'foo and it returned:
> 
> #s(prop-match 77 224 nil)
> 
> If I change 'foo to nil it does not move point.

So in your original use case it _did_ find a match, which is why it
moved point.