help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: regexp-replace default


From: Xah
Subject: Re: regexp-replace default
Date: Wed, 15 Oct 2008 14:57:59 -0700 (PDT)
User-agent: G2/1.0

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/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]