From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Multiple regions Date: Mon, 16 Jan 2012 15:38:52 +0100 Message-ID: References: <87wr8sj85b.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1326724779 10711 80.91.229.12 (16 Jan 2012 14:39:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Jan 2012 14:39:39 +0000 (UTC) Cc: Bastien , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 16 15:39:28 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RmniZ-0006z4-33 for ged-emacs-devel@m.gmane.org; Mon, 16 Jan 2012 15:39:27 +0100 Original-Received: from localhost ([::1]:41309 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmniY-0007cw-LN for ged-emacs-devel@m.gmane.org; Mon, 16 Jan 2012 09:39:26 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:33844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmniR-0007cl-C4 for emacs-devel@gnu.org; Mon, 16 Jan 2012 09:39:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmniM-0008E1-Tb for emacs-devel@gnu.org; Mon, 16 Jan 2012 09:39:19 -0500 Original-Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:44571) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmniM-0008Dq-Gs for emacs-devel@gnu.org; Mon, 16 Jan 2012 09:39:14 -0500 Original-Received: by lagj5 with SMTP id j5so1925216lag.0 for ; Mon, 16 Jan 2012 06:39:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=ylHR2THgSQEe7BVhevkbNWpA++bTct5oUdqP7Yi5Zos=; b=PxerWTlySdO0MMkj3zPUNohAxgzVr6/ZTIxbrrhMGpfKwyxES69acnL2aPs5kOLpRx NCHOLp/dFZMiYfZgF/oKVIGHu9t49xtZ18mePB1sNL5uoZEPhuIqtQxx5yYs2sgPu8Ro 3B1+m9O2RXgPIOBBfaYoKFfYtDD/AB2oYi7yE= Original-Received: by 10.152.148.228 with SMTP id tv4mr6220255lab.9.1326724753266; Mon, 16 Jan 2012 06:39:13 -0800 (PST) Original-Received: by 10.112.29.194 with HTTP; Mon, 16 Jan 2012 06:38:52 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147689 Archived-At: On Mon, Jan 16, 2012 at 15:32, Stefan Monnier wr= ote: >> I found this library to be quite useful: >> =C2=A0 http://www2.epcc.ed.ac.uk/~lmitche4/multi-region.el >> Is there any plan to implement multiple regions natively? > > Plans, no. =C2=A0But I think it would be good to do it. =C2=A0This said, = I think > such an implementation would first want to move call-interactively to > Elisp code. =C2=A0And it will need to do a delicate redesign of the regio= n code. If that ever happens then I think it should cover the case "multiple major modes". (My idea is that multiple major modes can be reliably implemented by giving functions involved relevant regions of the buffer as they are and the other regions just as whitespace (visible characters replaced by space, newline probably best preserved). But that requires deep and complicated changes to Emacs.)