From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Structural regular expressions Date: Thu, 09 Sep 2010 09:07:22 +0200 Organization: Organization?!? Message-ID: <87y6bbs8d1.fsf@lola.goethe.zz> References: <87sk1lt4uf.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1284016860 15422 80.91.229.12 (9 Sep 2010 07:21:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Sep 2010 07:21:00 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 09 09:20:59 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 1OtbRI-0006OY-ID for ged-emacs-devel@m.gmane.org; Thu, 09 Sep 2010 09:20:56 +0200 Original-Received: from localhost ([127.0.0.1]:48121 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtbEd-0008Ep-Le for ged-emacs-devel@m.gmane.org; Thu, 09 Sep 2010 03:07:51 -0400 Original-Received: from [140.186.70.92] (port=39071 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtbEP-0008DV-D7 for emacs-devel@gnu.org; Thu, 09 Sep 2010 03:07:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtbEN-0001cD-WD for emacs-devel@gnu.org; Thu, 09 Sep 2010 03:07:37 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:55664) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtbEN-0001bs-Qu for emacs-devel@gnu.org; Thu, 09 Sep 2010 03:07:35 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OtbEI-0000mu-Cs for emacs-devel@gnu.org; Thu, 09 Sep 2010 09:07:30 +0200 Original-Received: from p508ed45c.dip.t-dialin.net ([80.142.212.92]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Sep 2010 09:07:30 +0200 Original-Received: from dak by p508ed45c.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Sep 2010 09:07:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p508ed45c.dip.t-dialin.net X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:rnGEeEsD+ZtLyiId5i7UeQMrTbo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:129808 Archived-At: Stefan Monnier writes: >>> extending our notion of region so as to allow it to be >>> non-contiguous. > >> Glancing through the source, this seems like it would be a pretty >> major change. I guess BEGV and ZV would have to be changed from >> buffer positions to lists of buffer positions. Then everything >> that looked at them would be updated to respect this change. And >> so forth. Or do I have the wrong end of the stick? > > Yes, you're confusing the region with the visible part of the buffer: > BEGV and ZV have to do with narrowing and extending them to discontinuous > areas would indeed be a major undertaking, whereas the region is just the > part of the buffer between point and mark. And what is narrow-to-region supposed to do then? -- David Kastrup