* Resume-ing a query-replace
@ 2013-05-30 15:35 gentsquash
2013-06-01 13:43 ` Alan
0 siblings, 1 reply; 7+ messages in thread
From: gentsquash @ 2013-05-30 15:35 UTC (permalink / raw)
To: help-gnu-emacs
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]
-Jonathan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Resume-ing a query-replace
2013-05-30 15:35 Resume-ing a query-replace gentsquash
@ 2013-06-01 13:43 ` Alan
2013-06-02 11:41 ` Tim Visher
[not found] ` <mailman.865.1370173309.22516.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 7+ messages in thread
From: Alan @ 2013-06-01 13:43 UTC (permalink / raw)
To: help-gnu-emacs
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]
>
>
>
> -Jonathan
Have you considered command "repeat-complex-command"?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Resume-ing a query-replace
2013-06-01 13:43 ` Alan
@ 2013-06-02 11:41 ` Tim Visher
[not found] ` <mailman.865.1370173309.22516.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 7+ messages in thread
From: Tim Visher @ 2013-06-02 11:41 UTC (permalink / raw)
To: Alan; +Cc: emacs
On Sat, Jun 1, 2013 at 9:43 AM, Alan <wehmann@fnal.gov> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Resume-ing a query-replace
[not found] ` <mailman.865.1370173309.22516.help-gnu-emacs@gnu.org>
@ 2013-06-04 16:06 ` gentsquash
2013-06-04 16:48 ` Tim Visher
2013-06-05 3:31 ` Alan
1 sibling, 1 reply; 7+ messages in thread
From: gentsquash @ 2013-06-04 16:06 UTC (permalink / raw)
To: help-gnu-emacs
> > 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.
Right; that is exactly the issue.
...
> 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.
As would I. It looks like my only option is to examine the code of
`dired-do-query-replace-regexp'.
Thanks for the replies. -Jonathan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Resume-ing a query-replace
2013-06-04 16:06 ` gentsquash
@ 2013-06-04 16:48 ` Tim Visher
0 siblings, 0 replies; 7+ messages in thread
From: Tim Visher @ 2013-06-04 16:48 UTC (permalink / raw)
To: gentsquash; +Cc: emacs
On Tue, Jun 4, 2013 at 12:06 PM, gentsquash <gentsquash@gmail.com> wrote:
>> 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.
>
> As would I. It looks like my only option is to examine the code of
> `dired-do-query-replace-regexp'.
Don't forget to publish your code if you come up with something! :)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Resume-ing a query-replace
[not found] ` <mailman.865.1370173309.22516.help-gnu-emacs@gnu.org>
2013-06-04 16:06 ` gentsquash
@ 2013-06-05 3:31 ` Alan
2013-06-05 12:10 ` Tim Visher
1 sibling, 1 reply; 7+ messages in thread
From: Alan @ 2013-06-05 3:31 UTC (permalink / raw)
To: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Resume-ing a query-replace
2013-06-05 3:31 ` Alan
@ 2013-06-05 12:10 ` Tim Visher
0 siblings, 0 replies; 7+ messages in thread
From: Tim Visher @ 2013-06-05 12:10 UTC (permalink / raw)
To: Alan; +Cc: emacs
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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-06-05 12:10 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-30 15:35 Resume-ing a query-replace gentsquash
2013-06-01 13:43 ` Alan
2013-06-02 11:41 ` Tim Visher
[not found] ` <mailman.865.1370173309.22516.help-gnu-emacs@gnu.org>
2013-06-04 16:06 ` gentsquash
2013-06-04 16:48 ` Tim Visher
2013-06-05 3:31 ` Alan
2013-06-05 12:10 ` Tim Visher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).