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: Thu, 16 Jan 2003 12:30:47 -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 1042749253 24242 80.91.224.249 (16 Jan 2003 20:34:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 16 Jan 2003 20:34:13 +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 18ZGhv-0006Hd-00 for ; Thu, 16 Jan 2003 21:33:48 +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 18ZGiE-0006V2-00 for gnu-help-gnu-emacs@m.gmane.org; Thu, 16 Jan 2003 15:34:06 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18ZGh7-0004vW-00 for help-gnu-emacs@gnu.org; Thu, 16 Jan 2003 15:32:57 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18ZGgV-0003uM-00 for help-gnu-emacs@gnu.org; Thu, 16 Jan 2003 15:32:20 -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 18ZGfn-0002fu-00 for help-gnu-emacs@gnu.org; Thu, 16 Jan 2003 15:31:36 -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 MAA27917 for ; Thu, 16 Jan 2003 12:32:31 -0800 Original-Received: from [198.17.100.22] (G-Hill-Mac [198.17.100.22])MAA15921 for ; Thu, 16 Jan 2003 12:37:07 -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:5577 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5577 At 3:24 PM +0000 1/16/03, Maciej Kalisiak wrote: >When I'm doing incremental search using C-s, is there some variable >I can tweak >to get Emacs to place the cursor at the *start* of the match, as >opposed to the >end, as is the default? Put this in your .emacs: (add-hook 'isearch-mode-end-hook (function (lambda () (goto-char (match-beginning 0))))) --Greg