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: Mon, 28 Jun 2004 10:57:56 -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> <87y8mba4us.fsf@mail.jurta.org> <87y8m8mv6l.fsf@mail.jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1088435513 32370 80.91.224.253 (28 Jun 2004 15:11:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Jun 2004 15:11:53 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jun 28 17:11:38 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 1Bexak-0004r7-00 for ; Mon, 28 Jun 2004 16:58:42 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bexak-0006Qa-00 for ; Mon, 28 Jun 2004 16:58:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BexcM-0003vm-BB for emacs-devel@quimby.gnus.org; Mon, 28 Jun 2004 11:00:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bexc2-0003ne-0c for emacs-devel@gnu.org; Mon, 28 Jun 2004 11:00:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bexc0-0003nA-U8 for emacs-devel@gnu.org; Mon, 28 Jun 2004 11:00:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bexc0-0003mu-O7 for emacs-devel@gnu.org; Mon, 28 Jun 2004 11:00:00 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BexaA-0002a8-6z for emacs-devel@gnu.org; Mon, 28 Jun 2004 10:58:06 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Bexa0-0002Yi-EI; Mon, 28 Jun 2004 10:57:56 -0400 Original-To: Juri Linkov In-reply-to: <87y8m8mv6l.fsf@mail.jurta.org> (message from Juri Linkov on Mon, 28 Jun 2004 01:34:59 +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:25293 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25293 The commands that move the point back to the previous search result restore the previous point by setting it by `goto-char' to the position saved in the search status stack `isearch-cmds'. But this doesn't work when the current search buffer switches during the search like with changing the current Info node. I see. Yes, that makes sense. I don't know what is more preferable: two hooks or one hook with lambda. I think one hook with lambda is more elegant.