From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Newsgroups: gmane.emacs.help Subject: Re: Resume-ing a query-replace Date: Tue, 4 Jun 2013 20:31:41 -0700 (PDT) Message-ID: <9d25d71e-2f98-45d7-898f-d7480aa3d2a0@googlegroups.com> References: <3eb6e12f-843b-46fb-8196-533f035d5d05@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1370413891 17625 80.91.229.3 (5 Jun 2013 06:31:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Jun 2013 06:31:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 05 08:31:31 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uk7Fr-0004Zl-6B for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Jun 2013 08:31:31 +0200 Original-Received: from localhost ([::1]:39550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uk7Fq-0008VW-OM for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Jun 2013 02:31:30 -0400 X-Received: by 10.224.174.145 with SMTP id t17mr17909255qaz.4.1370403101439; Tue, 04 Jun 2013 20:31:41 -0700 (PDT) X-Received: by 10.49.94.174 with SMTP id dd14mr54675qeb.14.1370403101409; Tue, 04 Jun 2013 20:31:41 -0700 (PDT) Original-Path: usenet.stanford.edu!ch1no909729qab.0!news-out.google.com!y6ni243qax.0!nntp.google.com!ch1no909721qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=108.89.145.141; posting-account=czAMxQoAAAAUEojshw4CrIvcwSdulymE Original-NNTP-Posting-Host: 108.89.145.141 User-Agent: G2/1.0 Injection-Date: Wed, 05 Jun 2013 03:31:41 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:199045 X-Mailman-Approved-At: Wed, 05 Jun 2013 02:31:22 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91312 Archived-At: On Sunday, June 2, 2013 6:41:03 AM UTC-5, Tim Visher wrote: > On Sat, Jun 1, 2013 at 9:43 AM, Alan wrote: > > > On Thursday, May 30, 2013 10:35:20 AM UTC-5, gentsquash wrote: > > >> The doc for `dired-do-query-replace-regexp' has > > >> > > >> "...If you exit (C-g, RET or q), you can > > >> > > >> resume the query replace with the command M-<." > > >> > > >> Is there a version of `query-replace-regexp' with that same > > >> > > >> "resume" feature? [Possibly bound to a different key] > > > > > > Have you considered command "repeat-complex-command"? > > > > The only way that would be useful is if you've done nothing else since > > the last query-replace operation. It might be helpful, but probably > > not. > > > > The best I know of is to reopen your query-replace prompt and press > > `M-p` until what you want to do is shown again. I'd love a better > > solution to this. > > > > -- > > > > In Christ, > > > > Timmy V. > > > > http://blog.twonegatives.com/ > > http://five.sentenc.es/ -- Spend less time on mail "repeat-complex-command" can refer to more than just the last executed command. One can even use a regexp to specify which command to go back to. Interactive function "command-history" illustrates the possibilities.