emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: highlight failed part of isearch input


From: David Kastrup
Subject: Re: highlight failed part of isearch input
Date: Wed, 11 Jul 2007 07:27:01 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>> There is one inconsistence: when incrementally adding characters to the
>>> search string it highlights one part (only failed) of the search string,
>>> but when repeating the search with the same string from the search ring,
>>> it highlights the whole string.  This is a minor inconsistence, and can
>>> be tolerated if unavoidable.
>
>> Yes. I don't know how to fix that.
>
> We could simply try to find the longest prefix which does have a match.
> Can't be that hard.

When doing a regexp search for
abc*de
what is the longest matching prefix for
abd?

What is it for
ab\(cdf\)?cgh matched to abcdc?  And what about character
alternatives?

"Can't be that hard" is always cause for fun...

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

[Prev in Thread] Current Thread [Next in Thread]