From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: lawrence mitchell Newsgroups: gmane.emacs.help Subject: Re: Jump to match of regex Date: Tue, 15 Apr 2003 14:56:59 +0100 Organization: funfunfun 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 X-Trace: main.gmane.org 1050415283 28243 80.91.224.249 (15 Apr 2003 14:01:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 15 Apr 2003 14:01:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 15 16:01:21 2003 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 195Qzg-0007KI-00 for ; Tue, 15 Apr 2003 16:01:04 +0200 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 195QzB-0006Hz-00 for gnu-help-gnu-emacs@m.gmane.org; Tue, 15 Apr 2003 10:00:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!vegetable.demon.co.UK!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: vegetable.demon.co.uk (80.177.16.3) Original-X-Trace: fu-berlin.de 1050415020 885176 80.177.16.3 (16 [97657]) X-No-Yes: No Mail-Copies-To: nobody User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 Cancel-Lock: sha1:frrrGlA21EOIC60cYxw0Hyo39WM= Original-Xref: shelby.stanford.edu gnu.emacs.help:111999 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:8499 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8499 Joerg Schuster wrote: [...] > I would like to jump from "^'" to "^'" instead of jumping from line to > line with C-n. I know I could do a regexp-search, but I want to be > able to edit the items without having to start a new regexp-search > afterwards. > How can this be done? You could record a keyboard macro that does the regexp search you want, something like: C-x ( ; start recording keyboard macro C-1 C-s ; start a regexp isearch ^' ; search for ^' RET ; come out of isearch C-x ) ; finish recording keyboard macro Point is now after ^'. (i.e. on the b in 'bla'). You can now call the keyboard macro with C-x e, to move to the next occurance of ^'. -- lawrence mitchell