From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harald Hanche-Olsen Newsgroups: gmane.emacs.devel Subject: Re: Structural regular expressions Date: Thu, 09 Sep 2010 08:34:15 +0200 (CEST) Message-ID: <20100909.083415.204323845776459918.hanche@math.ntnu.no> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1284014286 6558 80.91.229.12 (9 Sep 2010 06:38:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Sep 2010 06:38:06 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 09 08:38:05 2010 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.69) (envelope-from ) id 1Otalk-0005jY-CX for ged-emacs-devel@m.gmane.org; Thu, 09 Sep 2010 08:38:00 +0200 Original-Received: from localhost ([127.0.0.1]:44821 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Otalj-000681-J4 for ged-emacs-devel@m.gmane.org; Thu, 09 Sep 2010 02:37:59 -0400 Original-Received: from [140.186.70.92] (port=37648 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtaiF-0004Ld-Dx for emacs-devel@gnu.org; Thu, 09 Sep 2010 02:34:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtaiC-00044A-U6 for emacs-devel@gnu.org; Thu, 09 Sep 2010 02:34:23 -0400 Original-Received: from anne.math.ntnu.no ([129.241.15.150]:46034) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OtaiC-00042v-Iu for emacs-devel@gnu.org; Thu, 09 Sep 2010 02:34:20 -0400 Original-Received: (qmail 6247 invoked from network); 9 Sep 2010 06:34:16 -0000 Original-Received: from gauss.math.ntnu.no (HELO localhost) (hanche@129.241.15.102) by anne.math.ntnu.no with ESMTPA; 9 Sep 2010 06:34:16 -0000 In-Reply-To: X-URL: http://www.math.ntnu.no/~hanche/ X-Mailer: Mew version 7.0.50 on Emacs 24.0.50 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:129807 Archived-At: + Kan-Ru Chen : > Could this be implemented like a `virtual-buffer'. > > (with-virtual-buffer LABEL &rest BODY) > > From the virtual-buffer point of view, the multiple regions marked by > LABEL are as a whole, connected buffer. Then legacy code could work on > this buffer without change. And you might get very surprised when a search-and-replace replaced some text spanning more than one of the regions. - Harald