From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: quick 'perform last replace again' Date: Mon, 21 Apr 2008 13:49:42 +0200 Organization: Organization?!? Message-ID: <853apfsa09.fsf@lola.goethe.zz> References: <873apfikj9.fsf@nonospaz.fatphil.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208778945 32355 80.91.229.12 (21 Apr 2008 11:55:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Apr 2008 11:55:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 21 13:56:20 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jnud3-0001Pr-23 for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Apr 2008 13:56:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jnuby-0006aV-R2 for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Apr 2008 07:55:06 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newsfeed00.sul.t-online.de!t-online.de!storethat.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:823lay0UE9SV4qVn+DB9cVuSDZQ= Original-Lines: 26 Original-NNTP-Posting-Date: 21 Apr 2008 13:49:50 CEST Original-NNTP-Posting-Host: 5eee0908.newsspool2.arcor-online.net Original-X-Trace: DXC=lY`EMA5kb?W=>bdbdS?M0YA9EHlD; 3YcR4Fo<]lROoRQFl8W>\BH3YRKi]dBa]PoGXCV`H8_`hhQT^9QSCVg3dOVOIC5DBZVJ9[Kfc4U1baaG]XPH>0:^@Y; ^ Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:158085 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53448 Archived-At: Phil Carmody 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