From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Newsgroups: gmane.emacs.devel Subject: Re: isearch hooks (was: query-replace-interactive not documented) Date: 28 Jun 2004 20:25:25 -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> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088470838 23052 80.91.224.253 (29 Jun 2004 01:00:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2004 01:00:38 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jun 29 03:00:27 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 1Bf6z5-0001YI-00 for ; Tue, 29 Jun 2004 03:00:27 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bf6z4-0007gc-00 for ; Tue, 29 Jun 2004 03:00:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bf70h-0004XU-WC for emacs-devel@quimby.gnus.org; Mon, 28 Jun 2004 21:02:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bf70S-0004VW-RN for emacs-devel@gnu.org; Mon, 28 Jun 2004 21:01:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bf70R-0004Un-Bm for emacs-devel@gnu.org; Mon, 28 Jun 2004 21:01:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bf70R-0004Ud-8U for emacs-devel@gnu.org; Mon, 28 Jun 2004 21:01:51 -0400 Original-Received: from [206.47.199.166] (helo=simmts8-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bf6yl-0003Ly-OX; Mon, 28 Jun 2004 21:00:08 -0400 Original-Received: from empanada.local ([67.71.118.172]) by simmts12-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20040629002509.MIPX7058.simmts12-srv.bellnexxia.net@empanada.local>; Mon, 28 Jun 2004 20:25:09 -0400 Original-Received: by empanada.local (Postfix, from userid 502) id 7C49D2285C0; Mon, 28 Jun 2004 20:25:25 -0400 (EDT) Original-To: Juri Linkov In-Reply-To: <87d63wy6ux.fsf_-_@mail.jurta.org> Original-Lines: 9 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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:25297 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25297 > + (if isearch-wrapped-hook > + (run-hooks 'isearch-wrapped-hook) > + (goto-char (if isearch-forward (point-min) (point-max)))) If the hook was made buffer local it might be non-nil and yet empty. So the test for nil-ness of isearch-wrapped-hook is wrong. Stefan