From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: multi-region.el --- Mapping commands over multiple active regions. Date: Mon, 02 Jan 2006 10:03:30 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1136217278 11349 80.91.229.2 (2 Jan 2006 15:54:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Jan 2006 15:54:38 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 02 16:54:36 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EtS0q-0007dp-7b for ged-emacs-devel@m.gmane.org; Mon, 02 Jan 2006 16:54:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EtS2Q-0002Mr-6p for ged-emacs-devel@m.gmane.org; Mon, 02 Jan 2006 10:55:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EtRGW-0006fV-1D for emacs-devel@gnu.org; Mon, 02 Jan 2006 10:06:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EtRGT-0006eT-5U for emacs-devel@gnu.org; Mon, 02 Jan 2006 10:06:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EtRGS-0006eH-Qi for emacs-devel@gnu.org; Mon, 02 Jan 2006 10:06:25 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EtRHW-0007Ut-Tj for emacs-devel@gnu.org; Mon, 02 Jan 2006 10:07:30 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EtRDe-0007Ol-Cg; Mon, 02 Jan 2006 10:03:30 -0500 Original-To: Lawrence Mitchell In-reply-to: (message from Lawrence Mitchell on Thu, 13 Jan 2005 21:29:46 +0000) 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:48621 Archived-At: I was going through old mail and came across your posting of multi-region.el, last January. Can someone imagine a way to integrate this into Emacs, so that ordinary Emacs commands, which now operate on the region, could operate on multi-regions when the user has specified multiple regions? Here's one idea. Suppose that region-beginning returned a list of region beginnings, and region-end returned a list of region ends. That would be a clean way to tell a command that there are multi-regions in effect. This could be done for (interactive "R"), whereas use of (interactive "r") would simply repeat the command on each sub-region in the list. Now is not the time to install such a change, but we could think about it now.