GNU bug report logs -
#48317
27.1; text-property-search-forward moves point to end when not found
Previous Next
Reported by: Howard Melman <hmelman <at> gmail.com>
Date: Sun, 9 May 2021 16:42:02 UTC
Severity: normal
Found in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 48317 <at> debbugs.gnu.org (full text, mbox):
[Please use Reply All to keep the bug address on the CC list.]
> From: Howard Melman <hmelman <at> gmail.com>
> Date: Sun, 9 May 2021 13:28:09 -0400
>
> > On May 9, 2021, at 1:07 PM, Eli Zaretskii <eliz <at> gnu.org> 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.
This bug report was last modified 3 years and 8 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.