From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Syntax tables for multiple modes [was: bug#22983: syntax-ppss returns wrong result.] Date: Wed, 23 Mar 2016 09:23:34 -0400 Message-ID: References: <20160311151512.GD2888@acm.fritz.box> <2c301ec9-041d-9172-d628-479062314b23@yandex.ru> <20160314151621.GF1894@acm.fritz.box> <874mc2dqtk.fsf@gmail.com> <87egb5cpmg.fsf@gmail.com> <87a8lsd4j3.fsf@gmail.com> <87twk0beuh.fsf@gmail.com> <877fgvgbr1.fsf@gmail.com> <87bn67eq4t.fsf@gmail.com> <87bn66qsgo.fsf@gmail.com> <87fuvhpimn.fsf@gmail.com> <8737rhpdv2.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458739445 14541 80.91.229.3 (23 Mar 2016 13:24:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2016 13:24:05 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 23 14:23:56 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 1aiilP-0000Y6-Dw for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2016 14:23:55 +0100 Original-Received: from localhost ([::1]:44046 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiilO-00046D-Lq for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2016 09:23:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiilG-00045y-HV for emacs-devel@gnu.org; Wed, 23 Mar 2016 09:23:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiilC-0000WN-Ku for emacs-devel@gnu.org; Wed, 23 Mar 2016 09:23:46 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:47340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiilC-0000WG-ER for emacs-devel@gnu.org; Wed, 23 Mar 2016 09:23:42 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aiil9-0000MU-Vj for emacs-devel@gnu.org; Wed, 23 Mar 2016 14:23:40 +0100 Original-Received: from 69-196-182-150.dsl.teksavvy.com ([69.196.182.150]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Mar 2016 14:23:39 +0100 Original-Received: from monnier by 69-196-182-150.dsl.teksavvy.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Mar 2016 14:23:39 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 69-196-182-150.dsl.teksavvy.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:d7B3IEbVxAnS0NELuZ8um4GXyDI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:202135 Archived-At: > SMIE is relatively new; 7 modes in emacs and 5 in ELPA are already > using it, but it probably can be still molded here and there. Sure. I'm just pointing out that it's a difficult modification to make, at least for some indentation codes (and probably for many of them). Maybe it's OK to design a multi-mode system which requires every major mode that wants to play with it well (e.g. well enough to get the kind of behavior we want for ERB) to basically rewrite its indentation code. But this won't fly unless we also make it possible to use major modes which haven't been rewritten in that way. Stefan