From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: regexp-replace default Date: Wed, 15 Oct 2008 14:45:51 -0700 Message-ID: <000801c92f0f$64f14c40$c2b22382@us.oracle.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1224107207 9660 80.91.229.12 (15 Oct 2008 21:46:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2008 21:46:47 +0000 (UTC) To: "'Joe'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 15 23:47:47 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 1KqEDQ-0005Xh-V7 for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Oct 2008 23:47:37 +0200 Original-Received: from localhost ([127.0.0.1]:37308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KqECL-0000M8-Uh for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Oct 2008 17:46:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KqEBt-0000JB-KI for help-gnu-emacs@gnu.org; Wed, 15 Oct 2008 17:46:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KqEBp-0000Du-U4 for help-gnu-emacs@gnu.org; Wed, 15 Oct 2008 17:46:00 -0400 Original-Received: from [199.232.76.173] (port=34858 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KqEBp-0000Dc-OZ for help-gnu-emacs@gnu.org; Wed, 15 Oct 2008 17:45:57 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]:43797) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KqEBp-0004Vi-Ev for help-gnu-emacs@gnu.org; Wed, 15 Oct 2008 17:45:57 -0400 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m9FLjpTt012188; Wed, 15 Oct 2008 16:45:51 -0500 Original-Received: from acsmt704.oracle.com (acsmt704.oracle.com [141.146.40.82]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m9FLjp3I023800; Wed, 15 Oct 2008 15:45:51 -0600 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 15 Oct 2008 14:45:50 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: thread-index: AckvDuvdTriVBhcxSQCCimDKJ6No4wAAFybA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:58823 Archived-At: > 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? Normally in Emacs `C-n' inserts the default value into the minibuffer for editing/RET.