From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [patch] Re: regexp repacement, how to present replacement to user? Date: Tue, 23 Oct 2007 03:12:50 -0400 Message-ID: References: <200710131700.42100.pogonyshev@gmx.net> <200710201653.57778.pogonyshev@gmx.net> <200710212200.38685.pogonyshev@gmx.net> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1193126208 23772 80.91.229.12 (23 Oct 2007 07:56:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Oct 2007 07:56:48 +0000 (UTC) Cc: juri@jurta.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Paul Pogonyshev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 23 09:56:49 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 1IkEd6-0007GW-2a for ged-emacs-devel@m.gmane.org; Tue, 23 Oct 2007 09:56:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IkEcy-0002n2-7U for ged-emacs-devel@m.gmane.org; Tue, 23 Oct 2007 03:56:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IkEVj-0005C7-5Y for emacs-devel@gnu.org; Tue, 23 Oct 2007 03:49:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IkEVd-000561-5C for emacs-devel@gnu.org; Tue, 23 Oct 2007 03:49:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IkEVc-00055n-Se for emacs-devel@gnu.org; Tue, 23 Oct 2007 03:49:04 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IkEVc-000227-8U for emacs-devel@gnu.org; Tue, 23 Oct 2007 03:49:04 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IkDwY-0000Qv-0L; Tue, 23 Oct 2007 03:12:50 -0400 In-reply-to: <200710212200.38685.pogonyshev@gmx.net> (message from Paul Pogonyshev on Sun, 21 Oct 2007 22:00:38 +0300) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:81523 Archived-At: These functions basically perform part of what `replace-match' does. The latter substitutes replacement group references (`\N' and `\&') and replaces match in the buffer with the result text. Proposed functions only generate and return that text, without modyfing the buffer. Yes, I understand that. I agree that these functions make logical sense. The question is, is this operation sufficiently useful that we should add functions to Emacs to do it, and document them?