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

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

Re: Edit default of M-x replace-regexp


From: Chris McMahan
Subject: Re: Edit default of M-x replace-regexp
Date: Thu, 14 Aug 2008 15:51:34 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt)

Corey Foote <address@hidden> writes:

> Hi everybody,
>
> I've got a quick question. I did M-x replace-regexp and entered a
> regexp and newstring only to realize (after pressing return and
> seeing the replacement fail) that the newstring I entered was not
> quite right. When I type M-x replace-regexp again, I get the choice
> to use my last replacement as the default. Is there a way to edit
> this default (particularly the newstring part of the default) so
> that I don't have to type everything all over again?
>
> Thanks!
>
> Sincerely,
>
> Corey Foote

There certainly is! (at least this works for me in my environment)

When you're presented with the default choice for the last
replacement, use the M-p key to cycle through the last entries into
the minibuffer, and you'll see (after 2 M-p presses) your original
string, suitable for editing.

- Chris



-- 
     (.   .)
  =ooO=(_)=Ooo=====================================
  Chris McMahan | address@hidden
  =================================================


reply via email to

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