all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim Visher <tim.visher@gmail.com>
To: Alan <wehmann@fnal.gov>
Cc: emacs <help-gnu-emacs@gnu.org>
Subject: Re: Resume-ing a query-replace
Date: Wed, 5 Jun 2013 08:10:56 -0400	[thread overview]
Message-ID: <CAHa53uzBf8=KyrbX9hYP2n9otBS=WC_WtiWoYnh3pgkTd1ocTw@mail.gmail.com> (raw)
In-Reply-To: <9d25d71e-2f98-45d7-898f-d7480aa3d2a0@googlegroups.com>

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



      reply	other threads:[~2013-06-05 12:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHa53uzBf8=KyrbX9hYP2n9otBS=WC_WtiWoYnh3pgkTd1ocTw@mail.gmail.com' \
    --to=tim.visher@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=wehmann@fnal.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.