From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Type Ahead Find
Date: Fri, 18 Mar 2005 16:53:45 -0500 [thread overview]
Message-ID: <874qf83a5i.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87k6o4eo2u.fsf@jurta.org> (Juri Linkov's message of "Fri, 18 Mar 2005 21:45:29 +0200")
> I-search: gnu [GNU Free Documentation License]
I'm not particularly happy about this reuse of the [...] message.
It's meant to hold an error message.
Maybe it's not too serious as such, but given that the text displayed there
is (at least in your example) nothing more than the text under point,
I don't find it to be worthwhile.
> In contrast with `isearch-search-fun-function' which mainly is used to
> widen the search space (e.g. to other Info nodes, etc.), the new
> variable `isearch-success-function' narrows the standard search space
> to specific buffer regions.
Actually, the first implementation of isearch-search-fun-function (a good
bit before I installed it in the CVS) was triggered by a question on
gnu.emacs.help of how to do an "incremental imenu" and I implemented it with
isearch-search-fun-function where I simply mixed the "current search string"
with the imenu-generic-expression in order to constrain the search space,
pretty much in the way you suggest.
> It removes the need to write a complicated
> search function for `isearch-search-fun-function'.
It seems that what you're suggesting is basically implementable as:
(setq isearch-search-fun-function
`(lambda (string &optional bound noerror)
(if (funcall isearch-success-function)
(,(isearch-search-fun) string bound noerror))))
so I'm not sure what you mean by "complicated".
Stefan
next prev parent reply other threads:[~2005-03-18 21:53 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-18 19:45 Type Ahead Find Juri Linkov
2005-03-18 20:21 ` Drew Adams
2005-03-18 21:53 ` Stefan Monnier [this message]
2005-03-19 12:29 ` Juri Linkov
2005-03-19 21:19 ` Miles Bader
2005-03-19 22:09 ` David Kastrup
2005-03-19 23:33 ` Miles Bader
2005-03-20 20:17 ` Juri Linkov
2005-03-20 21:46 ` David Kastrup
2005-03-20 22:04 ` Miles Bader
2005-03-21 19:28 ` Juri Linkov
2005-03-20 20:14 ` Juri Linkov
2005-03-20 20:22 ` Juri Linkov
2005-03-20 0:22 ` Richard Stallman
2005-03-20 20:19 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874qf83a5i.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).