From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: isearch hooks Date: Tue, 22 Jun 2004 19:17:47 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040528.181649.25475113.wl@gnu.org> <200405291737.i4THbPJ06689@raven.dms.auburn.edu> <878yeyczec.fsf@mail.jurta.org> <87n03aa4jk.fsf@mail.jurta.org> <87d63wy6ux.fsf_-_@mail.jurta.org> <87smcro0nx.fsf@mail.jurta.org> <873c4o60ef.fsf@mail.jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1087946367 29015 80.91.224.253 (22 Jun 2004 23:19:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Jun 2004 23:19:27 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jun 23 01:19:22 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BcuXy-0006YB-00 for ; Wed, 23 Jun 2004 01:19:22 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BcuXx-0006tr-00 for ; Wed, 23 Jun 2004 01:19:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BcuZI-00021E-7f for emacs-devel@quimby.gnus.org; Tue, 22 Jun 2004 19:20:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BcuXq-0001Af-TL for emacs-devel@gnu.org; Tue, 22 Jun 2004 19:19:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BcuXq-0001AB-63 for emacs-devel@gnu.org; Tue, 22 Jun 2004 19:19:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BcuXq-0001A6-1J for emacs-devel@gnu.org; Tue, 22 Jun 2004 19:19:14 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BcuWS-0003nA-UJ for emacs-devel@gnu.org; Tue, 22 Jun 2004 19:17:49 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1BcuWR-0001nO-KN; Tue, 22 Jun 2004 19:17:47 -0400 Original-To: Juri Linkov In-reply-to: <873c4o60ef.fsf@mail.jurta.org> (message from Juri Linkov on Tue, 22 Jun 2004 00:56:08 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25192 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25192 In the initial proposal the search scope is restricted to the current Info node, and wrapping is going to the next Info node with the search result. That would be a coherent kind of extension, but we would not want to call it "wrapping". "Wrapping" means going up to the top and searching the same material. In the solution you suggested with `isearch-search-fun' the search scope is the whole Info manual. But even in this case a wrapping hook is still needed: it should wrap the failed search to the top/final Info node. I agree. There were some problems with this approach: lazy highlighting uses the same function `isearch-search-fun' to highlight other matches. It could well be that the existing hook isearch-search-fun is not adequate. An additional hook for searching other places, before "failing" but not used by lazy highlighting, could be useful. There are some inconveniences: the user can't delete the last input by DEL and can't return the point to the search beginning by cancelling the search with C-g. Can you design the hooks to fix all these problems?