help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: placing cursor at *start* of match in incremental search


From: Kevin Rodgers
Subject: Re: placing cursor at *start* of match in incremental search
Date: Wed, 22 Jan 2003 14:57:31 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Greg Hill wrote:

   (add-hook 'isearch-mode-end-hook
         (function (lambda ()
              (if isearch-success (goto-char (match-beginning 0))))))


I think you could replace (match-beginning 0) with isearch-other-end,
although that will also leave the cursor at the end of a successful
backward incremental search (instead of at the beginning).

--
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;";>Kevin Rodgers</a>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]