[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Resume-ing a query-replace
From: |
Tim Visher |
Subject: |
Re: Resume-ing a query-replace |
Date: |
Wed, 5 Jun 2013 08:10:56 -0400 |
On Tue, Jun 4, 2013 at 11:31 PM, Alan <wehmann@fnal.gov> wrote:
> 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.
>>
> "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.
Wow. Another really useful Emacs feature I had no idea existed!
http://www.gnu.org/software/emacs/manual/html_node/emacs/Repetition.html
When you initially responded I thought that repeat-complex-command was
what executed when I typed `C-x z`.
Notably, I suppose, is that isearch commands are not typically
included in that list, but they can be made to be.
Thanks!
--
In Christ,
Timmy V.
http://blog.twonegatives.com/
http://five.sentenc.es/ -- Spend less time on mail