From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Islands and streams [Was: convert regex.c, .... to standard C] Date: Wed, 24 Nov 2010 12:13:19 -0500 Message-ID: <87ipzmfxw0.fsf@stupidchicken.com> References: <201011201200.06827.bruno@clisp.org> <20101122193824.GA2745@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1290623682 15403 80.91.229.12 (24 Nov 2010 18:34:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2010 18:34:42 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , Lennart Borgman , rms@gnu.org, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 24 19:34:37 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 1PLKAt-0000pG-Vi for ged-emacs-devel@m.gmane.org; Wed, 24 Nov 2010 19:34:36 +0100 Original-Received: from localhost ([127.0.0.1]:32798 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLKAt-0005ye-A5 for ged-emacs-devel@m.gmane.org; Wed, 24 Nov 2010 13:34:35 -0500 Original-Received: from [140.186.70.92] (port=38292 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLIyw-000229-2R for emacs-devel@gnu.org; Wed, 24 Nov 2010 12:20:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLIwV-00050w-TJ for emacs-devel@gnu.org; Wed, 24 Nov 2010 12:17:58 -0500 Original-Received: from pantheon-po26.its.yale.edu ([130.132.50.121]:44898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLIuH-0004Gs-Ah; Wed, 24 Nov 2010 12:13:21 -0500 Original-Received: from furball (dhcp128036014153.central.yale.edu [128.36.14.153]) (authenticated bits=0) by pantheon-po26.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id oAOHDKa3012635 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 24 Nov 2010 12:13:20 -0500 Original-Received: by furball (Postfix, from userid 1000) id EE07E160946; Wed, 24 Nov 2010 12:13:19 -0500 (EST) In-Reply-To: <20101122193824.GA2745@muc.de> (Alan Mackenzie's message of "Mon, 22 Nov 2010 19:38:24 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 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:133124 Archived-At: Alan Mackenzie writes: > Movement commands normally don't recognise islands as anything > unusual, and just move into/out of them. By binding variable > "respect-islands" to non-nil, any movement command would skip over any > islands it encountered, and such commands could not move point out of > an island. > > Several islands with the same major mode can by chained together as a > @dfn{stream}. When respect-islands is non-nil, movement commands can > jump over the "ocean" to the next/previous island in the chain. Sorry I'm late to the discussion, but the existing concept of fields does something similar---it restricts certain motion and editing commands. Have you looked into the possibility of extending fields to do what you describe?