[Top][All Lists]
[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
- highlight failed part of isearch input, Drew Adams, 2007/07/09
- Re: highlight failed part of isearch input, Juri Linkov, 2007/07/10
- RE: highlight failed part of isearch input, Drew Adams, 2007/07/10
- Re: highlight failed part of isearch input, Juri Linkov, 2007/07/10
- RE: highlight failed part of isearch input, Drew Adams, 2007/07/10
- Re: highlight failed part of isearch input, Stefan Monnier, 2007/07/10
- Re: highlight failed part of isearch input,
David Kastrup <=
- Re: highlight failed part of isearch input, Stefan Monnier, 2007/07/11
- Re: highlight failed part of isearch input, Miles Bader, 2007/07/11
- Re: highlight failed part of isearch input, Stefan Monnier, 2007/07/11
- Re: highlight failed part of isearch input, David Kastrup, 2007/07/11
- RE: highlight failed part of isearch input, Drew Adams, 2007/07/11
- Re: highlight failed part of isearch input, Robert J. Chassell, 2007/07/11
- RE: highlight failed part of isearch input, Drew Adams, 2007/07/11
- Re: highlight failed part of isearch input, Juri Linkov, 2007/07/11
- Re: highlight failed part of isearch input, Robert J. Chassell, 2007/07/12
- Re: highlight failed part of isearch input, Richard Stallman, 2007/07/12