unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* smarter isearch (was: Re: does emacs support incremental searching for partial matches?)
@ 2011-02-26 10:31 Le Wang
  0 siblings, 0 replies; 3+ messages in thread
From: Le Wang @ 2011-02-26 10:31 UTC (permalink / raw)
  To: jpkotta; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1016 bytes --]

On Sat, Feb 26, 2011 at 11:22 AM, jpkotta <jpkotta@gmail.com> wrote:

> On Feb 24, 8:43 am, Stefan Monnier <monn...@iro.umontreal.ca> 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

[-- Attachment #2: Type: text/html, Size: 1736 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-01  4:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.20.1298716324.28733.help-gnu-emacs@gnu.org>
2011-02-28 23:41 ` smarter isearch (was: Re: does emacs support incremental searching for partial matches?) jpkotta
2011-03-01  4:36   ` Le Wang
2011-02-26 10:31 Le Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).