From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: be able to replace during isearch Date: Sun, 1 Jul 2007 07:02:36 -0700 Message-ID: References: <7dbe73ed0707010637h7fdb580bgeb7a43e8cf807175@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1183298612 4701 80.91.229.12 (1 Jul 2007 14:03:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Jul 2007 14:03:32 +0000 (UTC) Cc: Mathias Dahl To: "Emacs-Devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 01 16:03:30 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I501P-0008UA-Ik for ged-emacs-devel@m.gmane.org; Sun, 01 Jul 2007 16:03:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I501P-0002G6-6a for ged-emacs-devel@m.gmane.org; Sun, 01 Jul 2007 10:03:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I501M-0002DM-B5 for emacs-devel@gnu.org; Sun, 01 Jul 2007 10:03:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I501K-00029t-KM for emacs-devel@gnu.org; Sun, 01 Jul 2007 10:03:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I501K-00029c-Et for emacs-devel@gnu.org; Sun, 01 Jul 2007 10:03:22 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I501J-0000NQ-Qc for emacs-devel@gnu.org; Sun, 01 Jul 2007 10:03:22 -0400 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l61E3Gqr005861; Sun, 1 Jul 2007 08:03:16 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l61E3F9s009985; Sun, 1 Jul 2007 08:03:15 -0600 Original-Received: from dhcp-amer-csvpn-gw1-141-144-64-217.vpn.oracle.com by acsmt350.oracle.com with ESMTP id 3004276001183298565; Sun, 01 Jul 2007 07:02:45 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <7dbe73ed0707010637h7fdb580bgeb7a43e8cf807175@mail.gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:74107 Archived-At: > > The idea is that you would not need to leave isearch to perform > > replacements. Whenever you wanted to replace the current search > > occurrence, you would hit a certain key. The first time you do > > this, you would be asked for the replacement string. > > I would like this, I remember thinking about this while iseaching some > time back. Would it also be possible to have a key that asks for > another replacement to be used for later replacements if I am not > happy with the previous one I entered? I might want to replace X with > Y in one place and with Z in another. That's just what I meant by one of the nice-to-haves (2): "redefine the replacement": > > Nice-to-haves: In Icicles search, you can use any replacement expression > > that is accepted by `query-replace-regexp', and there are additional key > > bindings during search to (1) replace all and (2) redefine the > > replacement to use. These would also be useful additions for isearch. In Icicles, for instance, there is a key to define the replacement string, which you can hit at any time. It prompts you for the replacement to use. Hitting it is implied the first time you hit the key to perform the replacement.