help-gnu-emacs
[Top][All Lists]
Advanced

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

smarter isearch (was: Re: does emacs support incremental searching for p


From: Le Wang
Subject: smarter isearch (was: Re: does emacs support incremental searching for partial matches?)
Date: Sat, 26 Feb 2011 18:31:50 +0800

On Sat, Feb 26, 2011 at 11:22 AM, jpkotta <address@hidden> wrote:
On Feb 24, 8:43 am, Stefan Monnier <address@hidden> wrote:
> >> (defconst my-isearch-re "[^\n\s\t]*?")
> > or (defconst my-isearch-re "\\S *?")
> > I'm not sure which is clearer.
>
> Many languages set \n to have syntax "close comment" rather than
> "space", in which case \S- does not exclude \n.
>
>         Stefan

I just added http://www.emacswiki.org/emacs/FlexIsearch to the wiki.
It's something that I've been thinking about for a while, but I didn't
know how to hook into isearch.  I think it's very close to what the OP
wanted.

This looks interesting.  Maybe you can add an additional level of search between word and flex - treat the search string as regexp.  This way I can map C-s to flex search (right now it's mapped to isearch-forward-regexp).

That is:

start searching for input as string, when not found, search for input as regexp, when not found, search for input as flex term

--
Le

reply via email to

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