Subject: Re: bug#14729: 24.3.50; Isearch oddity

From: Juri Linkov <[email-masked]>
Date: Sat, 04 Dec 2021 21:59:16 +0200

>> `isearch-fail-pos' assumes that in a failed state of search
>> a shorter previous successful search string should be taken
>> as a basis for highlighting.  In this case, the last successful match
>> was "buf", so an appended suffix is highlighted as failed.
>
> So, first we have:
>
>
>
>
> Then we type "fer", and then get:
>
>
>
>
> But...  I think I'd expect getting
>
>
>
>
> instead?  Probably.

Or to turn the failing search into a successful one
since the search string matches the buffer.

OTOH, the current behavior also makes sense
since it highlights the last failing characters
typed by the user.  E.g. compare it with `C-s bufzzz'.