From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier <monnier@iro.umontreal.ca> Newsgroups: gmane.emacs.devel Subject: Re: Structural regular expressions Date: Thu, 09 Sep 2010 00:46:03 +0200 Message-ID: <jwvbp8797ox.fsf-monnier+emacs@gnu.org> References: <loom.20100907T212314-566@post.gmane.org> <AANLkTimYvE0aqrG-OQxuY6BTca7ngzrfQUa62mOxyV=+@mail.gmail.com> <loom.20100907T222143-475@post.gmane.org> <87sk1lt4uf.fsf@gmail.com> <jwvsk1kaav2.fsf-monnier+emacs@gnu.org> <pvhphbi0wq0d.fsf@gmx.li> <jwvlj7c9ura.fsf-monnier+emacs@gnu.org> <pvhpd3sow7uc.fsf@gmx.li> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1283985982 21232 80.91.229.12 (8 Sep 2010 22:46:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Sep 2010 22:46:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lawrence Mitchell <wence@gmx.li> Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 09 00:46:21 2010 Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org> 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 <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>) id 1OtTPE-0006SZ-FY for ged-emacs-devel@m.gmane.org; Thu, 09 Sep 2010 00:46:16 +0200 Original-Received: from localhost ([127.0.0.1]:43351 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtTPD-0003Sd-Rk for ged-emacs-devel@m.gmane.org; Wed, 08 Sep 2010 18:46:15 -0400 Original-Received: from [140.186.70.92] (port=50495 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtTP6-0003SX-Js for emacs-devel@gnu.org; Wed, 08 Sep 2010 18:46:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from <monnier@iro.umontreal.ca>) id 1OtTP5-00011i-JG for emacs-devel@gnu.org; Wed, 08 Sep 2010 18:46:08 -0400 Original-Received: from impaqm5.telefonica.net ([213.4.138.5]:18697) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from <monnier@iro.umontreal.ca>) id 1OtTP5-00011Y-D1 for emacs-devel@gnu.org; Wed, 08 Sep 2010 18:46:07 -0400 Original-Received: from IMPmailhost3.adm.correo ([10.20.102.124]) by IMPaqm5.telefonica.net with bizsmtp id 4NlH1f00E2h2L9m3RNm5wm; Thu, 09 Sep 2010 00:46:05 +0200 Original-Received: from ceviche.home ([83.61.36.43]) by IMPmailhost3.adm.correo with BIZ IMP id 4Nm41f0010vquEj1jNm4k5; Thu, 09 Sep 2010 00:46:05 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Original-Received: by ceviche.home (Postfix, from userid 20848) id E83CC660D2; Thu, 9 Sep 2010 00:46:03 +0200 (CEST) In-Reply-To: <pvhpd3sow7uc.fsf@gmx.li> (Lawrence Mitchell's message of "Wed, 08 Sep 2010 16:52:43 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." <emacs-devel.gnu.org> List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/emacs-devel>, <mailto:emacs-devel-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/emacs-devel> List-Post: <mailto:emacs-devel@gnu.org> List-Help: <mailto:emacs-devel-request@gnu.org?subject=help> List-Subscribe: <http://lists.gnu.org/mailman/listinfo/emacs-devel>, <mailto:emacs-devel-request@gnu.org?subject=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:129804 Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/129804> >> 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. Stefan