From: David Kastrup <dak@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: quick 'perform last replace again'
Date: Mon, 21 Apr 2008 13:49:42 +0200 [thread overview]
Message-ID: <853apfsa09.fsf@lola.goethe.zz> (raw)
In-Reply-To: 873apfikj9.fsf@nonospaz.fatphil.org
Phil Carmody <thefatphil_demunged@yahoo.co.uk> writes:
> Subject line seems to describe the question succinctly.
>
> I've been inserting some typedefs in some C code, and using
> query-replace to turn uint8_t's into whatever_t's. However,
> I'm only changing a small proportion of each match, so it
> became a drag. I'd rather just have the ability to move and
> scroll around the file (so _not_ in query-replace mode), and
> when I spot something that needs to be changed I'd like to
> just move the cursor onto the line containing it, press some
> magic key sequence, and have it replace either the first
> (or all) instances of the most-recently-used match with the
> most-recently-used replacement on the current line. I do not
> want to be left in query-replace mode - I want to then
> continue editing.
C-x ESC ESC RET
Do the replacement with . (which is bound to act-and-exit).
Or use just M-% RET (which uses the defaults) and then . for
act-and-exit.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2008-04-21 11:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-21 10:12 quick 'perform last replace again' Phil Carmody
2008-04-21 11:49 ` David Kastrup [this message]
2008-04-21 20:15 ` Phil Carmody
2008-04-21 20:43 ` David Kastrup
2008-04-21 20:45 ` Sven Joachim
2008-04-22 13:58 ` Joel J. Adamson
2008-04-21 21:33 ` Peter Dyballa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=853apfsa09.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.