From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Adrian Kubala Newsgroups: gmane.emacs.help Subject: Re: placing cursor at *start* of match in incremental search Date: Thu, 16 Jan 2003 11:53:01 -0600 Organization: The University of Texas at Austin; Austin, Texas Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87hec9gewy.fsf@sixfingeredman.net> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042739793 13197 80.91.224.249 (16 Jan 2003 17:56:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 16 Jan 2003 17:56:33 +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 18ZEFj-0003QT-00 for ; Thu, 16 Jan 2003 18:56:31 +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 18ZEFU-0007Gn-00 for gnu-help-gnu-emacs@m.gmane.org; Thu, 16 Jan 2003 12:56:16 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!newsfeed.cs.utexas.edu!geraldo.cc.utexas.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-NNTP-Posting-Host: cs6668108-149.austin.rr.com Original-X-Trace: geraldo.cc.utexas.edu 1042739523 17561 66.68.108.149 (16 Jan 2003 17:52:03 GMT) Original-X-Complaints-To: abuse@utexas.edu Original-NNTP-Posting-Date: Thu, 16 Jan 2003 17:52:03 +0000 (UTC) X-Gpg-Key-Id: C7F908D4 X-Gpg-Fingerprint: 86C1 66EF 0F2C 9737 26D6 54D7 8812 FFDB C7F9 08D4 X-Crypto: GnuPG http://www.gnupg.org X-Face: "8iOH[{Wt}hH?#NRyDkC~tIY[DiOiVq(K (/S/2]#0u$&VtDH{aOoU* 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:5568 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5568 mac@die.spammer.die.dgp.toronto.edu (Maciej Kalisiak) writes: > 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? Here's what I use: ;;; Isearch should always put point at the start of the match. (defadvice isearch-exit (after my-goto-match-beginning activate) "Go to beginning of match." (when isearch-forward (goto-char isearch-other-end)))