From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Maciej Kalisiak Newsgroups: gmane.emacs.help Subject: Re: placing cursor at *start* of match in incremental search Date: Thu, 23 Jan 2003 08:58:19 -0500 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20030123135818.GA4232@khazad-dum> References: <3E2D7F8E.1050205@ihs.com> <1043301279.8748.31.camel@rum> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043330654 8064 80.91.224.249 (23 Jan 2003 14:04:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 23 Jan 2003 14:04:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org 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 18bhvb-0001w8-00 for ; Thu, 23 Jan 2003 15:01:59 +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 18bhwb-0004qY-09 for gnu-help-gnu-emacs@m.gmane.org; Thu, 23 Jan 2003 09:03:01 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18bhsK-0003Uv-00 for help-gnu-emacs@gnu.org; Thu, 23 Jan 2003 08:58:36 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18bhs6-0002yD-00 for help-gnu-emacs@gnu.org; Thu, 23 Jan 2003 08:58:25 -0500 Original-Received: from atlas.dgp.toronto.edu ([128.100.4.1]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18bhs4-0002qU-00 for help-gnu-emacs@gnu.org; Thu, 23 Jan 2003 08:58:20 -0500 Original-Received: from mac.dgp.toronto.edu (mac.laptop.dgp.toronto.edu [128.100.4.177]) by atlas.dgp.toronto.edu (Postfix) with ESMTP id 18D6C4F817; Thu, 23 Jan 2003 08:58:16 -0500 (EST) Original-Received: by mac.dgp.toronto.edu (Postfix, from userid 1000) id 2A2AF78DC9; Thu, 23 Jan 2003 08:58:19 -0500 (EST) Original-To: Ittay Dror Content-Disposition: inline In-Reply-To: <1043301279.8748.31.camel@rum> User-Agent: Mutt/1.5.3i 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:5897 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5897 On Thu, Jan 23, 2003 at 07:58:46AM +0200, Ittay Dror wrote: > here are my 2c: > (defadvice isearch-search (after put-cursor-at-beginning last act) > (if isearch-success (goto-char (match-beginning 0)))) > > (defadvice isearch-repeat (before put-cursor-at-end first act) > (goto-char (match-end 0))) > > this will put the cursor at the start of the search *while* searching. > seems less confusing to me. Very cool! This is now my favourite. :) Although, is there any way to prevent the flashing when typing in more letters? As I add additional characters to the search, after each one all the current matches are erased, and after a small, but quite visible delay, the new ones show up... the default isearch doesn't do that. Minor point, but I might as well ask since I'm getting such excellent suggestions. :) -- "If A equals success, then the formula is: A=X+Y+Z. X is work. Y is play. Z is keep your mouth shut." -- Albert Einstein