[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Resume-ing a query-replace
From: |
Alan |
Subject: |
Re: Resume-ing a query-replace |
Date: |
Tue, 4 Jun 2013 20:31:41 -0700 (PDT) |
User-agent: |
G2/1.0 |
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.