[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Isearch: always try to find longest successful prefix [was: move to
Re: Isearch: always try to find longest successful prefix [was: move to fail position in Isearch edit]
Tue, 11 Nov 2008 19:32:37 +0200
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu)
> You'll notice that this would be a lot handier if Isearch always started out
> (and resumed after Isearch edit) by treating the search string incrementally.
> For example, suppose you search again with a previous search string `aaxbbb'
> hitting `C-s C-s' in a buffer where there is no match for `aaxbbb' but there
> matches for `aa'.
> Isearch fails immediately, showing the entire search string, `aaxbbb', as a
> failed match by highlighting it. If, however, you had typed `aaxbbb' to a
> `C-s', then the `aa' match would be located, and the failure highlighting
> correctly reflect the `aa' prefix match success and the `xbbb' suffix match
We could try implementing the idea suggested by Stefan in
to iteratively remove the last char until a search succeeds.