From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luke Hutchison Newsgroups: gmane.emacs.devel Subject: Feature request: yank-with-replace Date: 08 Nov 2002 14:02:27 -0700 Sender: emacs-devel-admin@gnu.org Message-ID: <1036789346.1215.107.camel@localhost.localdomain> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1036790734 14138 80.91.224.249 (8 Nov 2002 21:25:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 8 Nov 2002 21:25:34 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18AGdB-0003fu-00 for ; Fri, 08 Nov 2002 22:25:33 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18AGmp-0000rL-00 for ; Fri, 08 Nov 2002 22:35:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18AGcI-0001PI-00; Fri, 08 Nov 2002 16:24:38 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18AGDN-0005ot-00 for emacs-devel@gnu.org; Fri, 08 Nov 2002 15:58:53 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18AGDJ-0005mu-00 for emacs-devel@gnu.org; Fri, 08 Nov 2002 15:58:52 -0500 Original-Received: from sccrmhc01.attbi.com ([204.127.202.61]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18AGDJ-0005lw-00 for emacs-devel@gnu.org; Fri, 08 Nov 2002 15:58:49 -0500 Original-Received: from 12-255-38-156.client.attbi.com ([12.255.38.156]) by sccrmhc01.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20021108205845.GGVD25908.sccrmhc01.attbi.com@12-255-38-156.client.attbi.com> for ; Fri, 8 Nov 2002 20:58:45 +0000 Original-To: emacs-devel@gnu.org X-Mailer: Ximian Evolution 1.1.90 (Preview Release) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9270 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9270 I have a request for a small feature that I think would be very useful. (I hope this is the right list for it!) It would be very nice to replace values as a region is being yanked: for example, you have some code that performs operations on the x-coordinates of something, and you want to duplicate the code for the y-coordinates, so you select it, kill it, yank it and then go back and change all the 'x's to 'y's. This can leave you with inconsistent code, if you don't catch them all (ever hear the expression, "Cut'n'paste gets you every time"?)... I propose adding yank-with-replace, which asks you for a search and replace string before the kill buffer is yanked-from, to take care of situations like this. yank-with-replace-query-regexp would probably be useful too, which would yank and then run a query-regexp on the region that you just yanked. I can't seem to find this feature in emacs, and don't have any emacs development background, but I imagine that adding this would be trivial for an emacs programmer. Does it seem that this feature would be useful? Thanks, Luke Hutchison.