From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris McMahan Newsgroups: gmane.emacs.help Subject: Re: Edit default of M-x replace-regexp Date: Thu, 14 Aug 2008 15:51:34 -0400 Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218746460 3263 80.91.229.12 (14 Aug 2008 20:41:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2008 20:41:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 14 22:41:52 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KTjdV-0000fn-C6 for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2008 22:41:33 +0200 Original-Received: from localhost ([127.0.0.1]:50819 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTjcY-0006Ao-UN for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2008 16:40:34 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: panix5.panix.com Original-X-Trace: reader1.panix.com 1218743484 29055 166.84.1.5 (14 Aug 2008 19:51:24 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Thu, 14 Aug 2008 19:51:24 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt) Cancel-Lock: sha1:TEIQmR5sjeGKUUy8KK54An5MGZM= Original-Xref: news.stanford.edu gnu.emacs.help:161287 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56632 Archived-At: Corey Foote 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 | first_initiallastname@one.dot.net =================================================