From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Doing search and replace via *grep* buffer Date: Thu, 15 Feb 2007 11:47:57 -0500 Message-ID: References: <45D453A0.6030902@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1171558115 27784 80.91.229.12 (15 Feb 2007 16:48:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Feb 2007 16:48:35 +0000 (UTC) Cc: "Lennart Borgman \(gmail\)" , emacs-devel@gnu.org To: storm@cua.dk (Kim F. Storm) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 15 17:48:27 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 1HHjmU-0003vM-I9 for ged-emacs-devel@m.gmane.org; Thu, 15 Feb 2007 17:48:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HHjmU-0003qY-4a for ged-emacs-devel@m.gmane.org; Thu, 15 Feb 2007 11:48:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HHjmI-0003qF-1R for emacs-devel@gnu.org; Thu, 15 Feb 2007 11:48:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HHjmG-0003nm-7f for emacs-devel@gnu.org; Thu, 15 Feb 2007 11:48:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HHjmG-0003nZ-0F for emacs-devel@gnu.org; Thu, 15 Feb 2007 11:48:12 -0500 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HHjmF-0008KY-Ff for emacs-devel@gnu.org; Thu, 15 Feb 2007 11:48:11 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 3CF512CEB6A; Thu, 15 Feb 2007 11:48:10 -0500 (EST) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 510523FE0; Thu, 15 Feb 2007 11:47:57 -0500 (EST) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 3C3334C6D25; Thu, 15 Feb 2007 11:47:57 -0500 (EST) In-Reply-To: (Kim F. Storm's message of "Thu\, 15 Feb 2007 14\:46\:47 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: Linux 2.6 (newer, 3) 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:66429 Archived-At: >> Looks very interesting, but would it not be possible to use a >> prompting similar for other replace commands in Emacs? > I don't follow... Example, please. To me The Right Way to do it is to change query-replace so that it uses a "perform-replace-function" variable which could be used to hook into the replacement and to reflect it ni the source buffers. Stefan