From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: A vision for multiple major modes: some design notes Date: Tue, 14 Jun 2016 13:13:05 +0000 Message-ID: <20160614131305.GB4573@acm.fritz.box> References: <20160420194450.GA3457@acm.fritz.box> <8360vb6o7u.fsf@gnu.org> <20160421213323.GD1775@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1465910001 17816 80.91.229.3 (14 Jun 2016 13:13:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jun 2016 13:13:21 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 14 15:13:11 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bCo9V-00061K-6n for ged-emacs-devel@m.gmane.org; Tue, 14 Jun 2016 15:13:09 +0200 Original-Received: from localhost ([::1]:35176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCo9U-0003aX-3S for ged-emacs-devel@m.gmane.org; Tue, 14 Jun 2016 09:13:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCo9I-0003Xo-H4 for emacs-devel@gnu.org; Tue, 14 Jun 2016 09:12:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCo9F-0008KZ-Am for emacs-devel@gnu.org; Tue, 14 Jun 2016 09:12:56 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:57417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCo9F-0008KH-0W for emacs-devel@gnu.org; Tue, 14 Jun 2016 09:12:53 -0400 Original-Received: (qmail 44743 invoked by uid 3782); 14 Jun 2016 13:12:51 -0000 Original-Received: from acm.muc.de (p548C66D2.dip0.t-ipconnect.de [84.140.102.210]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 14 Jun 2016 15:12:50 +0200 Original-Received: (qmail 4669 invoked by uid 1000); 14 Jun 2016 13:13:05 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) 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 X-Received-From: 193.149.48.3 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:204355 Archived-At: Hello, John. Trust you've had a good holiday! On Mon, Jun 13, 2016 at 02:17:40PM -0700, John Wiegley wrote: > >>>>> Alan Mackenzie writes: > > The essence of major mode support is buffer local variables. (Things like > > the syntax table and local key map are basically buffer local variables, > > even though they are not accessible as such from Lisp.) So, at first sight, > > each "island" in the buffer needs its own set of "buffer local" variables. > I don't agree that this is the essence of major mode support. Another aspect > of major modes is an expectation of which text properties might occur > throughout the buffer, and where and why. OK. Shall we agree that the buffer local variables are a crucially important part of what constitutes a major mode? :-) Clearly text properties are important (indeed, in the case of, e.g., CC Mode critically important) too. > -- > John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F > http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 -- Alan Mackenzie (Nuremberg, Germany).