From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Type Ahead Find Date: Sun, 20 Mar 2005 22:17:02 +0200 Organization: JURTA Message-ID: <87acoy89fa.fsf@jurta.org> References: <87k6o4eo2u.fsf@jurta.org> <874qf83a5i.fsf-monnier+emacs@gnu.org> <87psxvq11d.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1111352896 8506 80.91.229.2 (20 Mar 2005 21:08:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2005 21:08:16 +0000 (UTC) Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 20 22:08:15 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DD7dZ-0004iu-Mt for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2005 22:07:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DD7uX-00008g-C8 for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2005 16:24:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DD7oG-0007uf-Vb for emacs-devel@gnu.org; Sun, 20 Mar 2005 16:18:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DD7o6-0007qk-By for emacs-devel@gnu.org; Sun, 20 Mar 2005 16:18:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DD7o2-0007kz-Nq for emacs-devel@gnu.org; Sun, 20 Mar 2005 16:17:54 -0500 Original-Received: from [194.126.101.98] (helo=MXR-4.estpak.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DD7Fg-00052J-OO; Sun, 20 Mar 2005 15:42:25 -0500 Original-Received: from mail.neti.ee (80-235-41-70-dsl.mus.estpak.ee [80.235.41.70]) by MXR-4.estpak.ee (Postfix) with ESMTP id 5345B12D0C5; Sun, 20 Mar 2005 22:42:23 +0200 (EET) Original-To: snogglethorpe@gmail.com In-Reply-To: (Miles Bader's message of "Sun, 20 Mar 2005 08:33:58 +0900") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34843 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34843 Miles Bader writes: > Something like: > > Global info I-search: foo > > [Maybe "Cross-node" would be better than "Global"?] > > or whatever would be even more similar to the existing "Wrapped", get > the point across well, and address your concern about the prompt size > bouncing around excessively. I don't like "[initial node]" too. Your idea of using a prefix looks better. We could have the following prefixes: 1. In the initial node: Info I-search: foo 2. Before leaving the initial node: Failing Info I-search: foo 3. After leaving the initial node: Cross-node Info I-search: foo 4. When failing for the rest of the manual: Failing Cross-node Info I-search: foo 5. After wrapping to the top node: Wrapped Cross-node Info I-search: foo 6. Failing wrapped search: Failing wrapped Cross-node Info I-search: foo The prefix "Info " indicates that a special Info search is active that will wrap to the next node instead of the top of the current node. This can be implemented by adding a new variable `isearch-type' holding a search type string and set in the `isearch-search-fun-function' or the proposed `isearch-success-function'. With both these functions defined (e.g. to search menu items, references and links through multiple nodes in Info) the search message will look like this: Cross-node Links Info regexp I-search: foo In the function `isearch-message-prefix' the most suitable place for this variable seems to be after the error prefixes ("failing", "wrapped") and before generic search type prefixes "regexp", "word", "backward" (shown by the arrow below): (if isearch-success "" "failing ") (if isearch-adjusted "pending " "") (if (and isearch-wrapped ...) "over") (if isearch-wrapped "wrapped ") -> (or isearch-type "") (if isearch-word "word " "") (if isearch-regexp "regexp " "") (if nonincremental "search" "I-search") (if isearch-forward "" " backward") (if current-input-method (concat " [" current-input-method-title "]: ") ": ") -- Juri Linkov http://www.jurta.org/emacs/