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: multi-region.el --- Mapping commands over multiple active regions. Date: Mon, 02 Jan 2006 11:28:22 -0500 Message-ID: <87bqyuvbmi.fsf-monnier+emacs@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1136219689 19006 80.91.229.2 (2 Jan 2006 16:34:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Jan 2006 16:34:49 +0000 (UTC) Cc: Lawrence Mitchell , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 02 17:34:46 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 1EtSdp-0008LD-A9 for ged-emacs-devel@m.gmane.org; Mon, 02 Jan 2006 17:34:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EtSfP-0004V7-Eo for ged-emacs-devel@m.gmane.org; Mon, 02 Jan 2006 11:36:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EtSZR-0002Lc-J8 for emacs-devel@gnu.org; Mon, 02 Jan 2006 11:30:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EtSZQ-0002LM-Gw for emacs-devel@gnu.org; Mon, 02 Jan 2006 11:30:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EtSZQ-0002LG-A5 for emacs-devel@gnu.org; Mon, 02 Jan 2006 11:30:04 -0500 Original-Received: from [209.226.175.188] (helo=tomts25-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EtSaT-0000RZ-43; Mon, 02 Jan 2006 11:31:09 -0500 Original-Received: from alfajor ([67.71.26.159]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060102162822.BDBQ25777.tomts25-srv.bellnexxia.net@alfajor>; Mon, 2 Jan 2006 11:28:22 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id 6D2F2D769B; Mon, 2 Jan 2006 11:28:22 -0500 (EST) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Mon, 02 Jan 2006 10:03:30 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Originating-IP: [0] 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:48627 Archived-At: > 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. I completely agree. As a matter of fact I suggested something along the same lines some years ago on gnu.emacs.help (I especially remember the (interative "r") automatically looping over all the sub-regions). Stefan