From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [SUSPECTED SPAM] Re: [Emacs-diffs] scratch/widen-less a4ba846: Replace prog-widen with consolidating widen calls Date: Mon, 11 Dec 2017 12:21:14 -0500 Message-ID: References: <20171129233237.27462.23351@vcs0.savannah.gnu.org> <83lgil1qme.fsf@gnu.org> <83d13x1j2s.fsf@gnu.org> <34abea95-c7f7-e8fa-8407-8c2fd2a4cfe1@yandex.ru> <83y3mkzw1n.fsf@gnu.org> <83mv2zzv7z.fsf@gnu.org> <83o9nexy48.fsf@gnu.org> <83d13uxug5.fsf@gnu.org> <41e3f343-816f-d2db-6575-6ef43d54957f@yandex.ru> <838tecuqjb.fsf@gnu.org> <83609etizl.fsf@gnu.org> <83wp1ts123.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1513012892 25282 195.159.176.226 (11 Dec 2017 17:21:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 11 Dec 2017 17:21:32 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org, Dmitry Gutov To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 11 18:21:29 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 1eORlf-0006Lu-Hi for ged-emacs-devel@m.gmane.org; Mon, 11 Dec 2017 18:21:27 +0100 Original-Received: from localhost ([::1]:54728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eORlm-0003UF-PH for ged-emacs-devel@m.gmane.org; Mon, 11 Dec 2017 12:21:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eORlY-0003IO-2r for emacs-devel@gnu.org; Mon, 11 Dec 2017 12:21:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eORlU-0001Hk-Va for emacs-devel@gnu.org; Mon, 11 Dec 2017 12:21:20 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:37947) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eORlU-0001H2-PA; Mon, 11 Dec 2017 12:21:16 -0500 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id vBBHLFrW000495; Mon, 11 Dec 2017 12:21:15 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id C9354AE09C; Mon, 11 Dec 2017 12:21:14 -0500 (EST) In-Reply-To: <83wp1ts123.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 11 Dec 2017 18:04:52 +0200") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6177=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6177> : inlines <6236> : streams <1772832> : uri <2549233> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:220891 Archived-At: > I hope not. I thought the goal of the branch was to allow Emacs > better support MMM and similar modes, and that removing/replacing > prog-indentation-context was just a means to that end. There are may ways to be "better". The claim is that using narrowing instead of (nth 1 prog-indentation-context) will make mmm support applicable in more circumstances because it reduces the amount of changes needed in each major mode (in many cases the required changes are reduced to nothing). I don't think anybody claims that prog-indentation-context makes it hard/impossible to get as good mmm-support as what Dmitry is suggesting. They are just 2 alternative (and mostly equivalent) ways to get the same result. One of the two requires changes to every major mode and is currently only used by antlr+python. The other is used by mhtml-mode, mmm-mode and generally requires few if any changes to major modes. Also changing antlr+python to use the other approach is easy and leads to marginally simpler code. Stefan