From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Syntax ambiguities in narrowed buffers and multiple major modes: a proposed solution. Date: Sun, 26 Feb 2017 16:10:39 +0000 Message-ID: <20170226161039.GC3811@acm> References: <20170225135355.GA2592@acm> <20170225212236.GD2592@acm> <20170226120656.GA3811@acm> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1488125515 31651 195.159.176.226 (26 Feb 2017 16:11:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 26 Feb 2017 16:11:55 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: Stefan Monnier , Emacs developers To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 26 17:11:50 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ci1QI-0007Hr-Ip for ged-emacs-devel@m.gmane.org; Sun, 26 Feb 2017 17:11:46 +0100 Original-Received: from localhost ([::1]:47383 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ci1QM-0008P1-R6 for ged-emacs-devel@m.gmane.org; Sun, 26 Feb 2017 11:11:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ci1Pi-0008Oi-Cb for emacs-devel@gnu.org; Sun, 26 Feb 2017 11:11:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ci1Pf-0000je-6r for emacs-devel@gnu.org; Sun, 26 Feb 2017 11:11:10 -0500 Original-Received: from ocolin.muc.de ([193.149.48.4]:63323 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ci1Pe-0000iE-S7 for emacs-devel@gnu.org; Sun, 26 Feb 2017 11:11:07 -0500 Original-Received: (qmail 3232 invoked by uid 3782); 26 Feb 2017 16:11:04 -0000 Original-Received: from acm.muc.de (p548C6C97.dip0.t-ipconnect.de [84.140.108.151]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 26 Feb 2017 17:11:03 +0100 Original-Received: (qmail 5615 invoked by uid 1000); 26 Feb 2017 16:10:39 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.4 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:212611 Archived-At: Hello, Yuri. On Sun, Feb 26, 2017 at 19:24:41 +0700, Yuri Khan wrote: > On Sun, Feb 26, 2017 at 7:06 PM, Alan Mackenzie wrote: > > In that case, we'd need some other term to mean what I'm calling an > > "island", i.e. a region of buffer bounded by island open/close > > syntax-table text properties, possibly with its own syntax table, which > > is syntactically disjoint from the surrounding buffer pieces. > In many languages, conventions exist for including formal > documentation in the source. In Elisp and Python, it is syntactically > expressed as a string. In Javadoc and Doxygen (used for C and C++), it > takes the form of a specially formatted comment. In C#, it is a > comment containing XML markup. > In all cases, the documentation has its own syntax, distinct from the > syntax of the surrounding program, and may benefit from local > bindings. Totally a use case for islands. Could well be. Once the facility has been implemented, people will be able to try out things like this. -- Alan Mackenzie (Nuremberg, Germany).