From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Greg Hill Newsgroups: gmane.emacs.help Subject: Re: placing cursor at *start* of match in incremental search Date: Fri, 17 Jan 2003 11:34:28 -0800 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Trace: main.gmane.org 1042832264 4243 80.91.224.249 (17 Jan 2003 19:37:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 17 Jan 2003 19:37:44 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ZcJD-000161-00 for ; Fri, 17 Jan 2003 20:37:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ZcKV-0002Cz-07 for gnu-help-gnu-emacs@m.gmane.org; Fri, 17 Jan 2003 14:39:03 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18ZcHs-00089p-00 for help-gnu-emacs@gnu.org; Fri, 17 Jan 2003 14:36:20 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18ZcHm-00080k-00 for help-gnu-emacs@gnu.org; Fri, 17 Jan 2003 14:36:15 -0500 Original-Received: from renfield.synergymicro.com ([153.105.4.30] helo=synergymicro.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ZcGZ-00075g-00 for help-gnu-emacs@gnu.org; Fri, 17 Jan 2003 14:34:59 -0500 Original-Received: from synergy.synergy.encinitas.ca.us ([153.105.4.29]) by synergymicro.com (8.9.3/8.9.3) with ESMTP id LAA07166 for ; Fri, 17 Jan 2003 11:35:40 -0800 Original-Received: from [198.17.100.22] (G-Hill-Mac [198.17.100.22])LAA11306 for ; Sat, 18 Jan 2003 11:34:42 -0800 In-Reply-To: Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5632 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5632 At 6:35 PM +0000 1/17/03, Maciej Kalisiak wrote: >* Greg Hill : >> Put this in your .emacs: >> >> (add-hook 'isearch-mode-end-hook >> (function (lambda () (goto-char (match-beginning 0))))) > >Ah, perfect! Thanks. > >Is this approach better, or Adrian's method of using "advice"? (I have only >limited elisp knowledge, and not much experience with advice functions) A question like that could probably start a "religious war," which I'll stay out of. --Greg