unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Xah <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: regexp-replace default
Date: Wed, 15 Oct 2008 14:57:59 -0700 (PDT)	[thread overview]
Message-ID: <108c73dd-ba52-47c3-9acd-190da619614a@i20g2000prf.googlegroups.com> (raw)
In-Reply-To: c524c108-7137-4135-8ff8-39d7d504d29b@u28g2000hsc.googlegroups.com

On Oct 15, 2:17 pm, Joe <joesmo...@gmail.com> wrote:
> Hey all,
> Hopefully a simple question for the emacs wizards out there.  Say I do
> a regexp-relace of:
>
> M-x replace-regexp
>   Replace regexp: foo
>   Replace regexp with: bar
>
> But then I realize I actually wanted foo to baz.  When I do M-x
> replace-regexp it shows me the default
>
> M-x replace-regexp
>   Replace regexp (default foo -> bar):
>
> Is there someway to get the default text and edit that instead of
> typing it in again?

You can press the up/down arrow to go back/forth promp value history.

Other than that, there's no builtin way to simply edit default find/
replace pair.

  Xah
∑ http://xahlee.org/

      parent reply	other threads:[~2008-10-15 21:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-15 21:17 regexp-replace default Joe
2008-10-15 21:44 ` David Kastrup
2008-10-15 21:45 ` Drew Adams
2008-10-15 21:57 ` Xah [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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=108c73dd-ba52-47c3-9acd-190da619614a@i20g2000prf.googlegroups.com \
    --to=xahlee@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).