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: Mon, 21 Mar 2016 16:47:32 -0400 Message-ID: References: <20160311151512.GD2888@acm.fritz.box> <20160311212410.GG2888@acm.fritz.box> <73903215-f94b-e194-7bfe-0d6350c95769@yandex.ru> <20160311221540.GH2888@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> <87fuvjeq9g.fsf@gmail.com> <87pound4lq.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458594144 28517 80.91.229.3 (21 Mar 2016 21:02:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2016 21:02:24 +0000 (UTC) Cc: Alan Mackenzie , Dmitry Gutov , emacs-devel To: Vitalie Spinu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 21 22:02:16 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 1ai6xq-0007SV-H1 for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2016 22:02:14 +0100 Original-Received: from localhost ([::1]:60408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai6xp-00005B-T6 for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2016 17:02:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai6jh-0006MU-JQ for emacs-devel@gnu.org; Mon, 21 Mar 2016 16:47:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ai6je-0001m7-4z for emacs-devel@gnu.org; Mon, 21 Mar 2016 16:47:37 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:43247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai6jd-0001m2-Vu for emacs-devel@gnu.org; Mon, 21 Mar 2016 16:47:34 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id u2LKlWZi001570; Mon, 21 Mar 2016 16:47:32 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 3ECD360587; Mon, 21 Mar 2016 16:47:32 -0400 (EDT) In-Reply-To: <87pound4lq.fsf@gmail.com> (Vitalie Spinu's message of "Mon, 21 Mar 2016 20:16:01 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5617=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5617> : inlines <4542> : streams <1606669> : uri <2171605> 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.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:202034 Archived-At: > The hope is that most modes will need the default implementation. Maybe > prog-indentation-funciton need not even know about those arguments. Along what > Dmitry proposed, there could be an optional extra piece > prog-indentation-with-virtual-context-function that modes might choose to set. That was the idea being the prog-indent-context: indentation functions can choose to use if they wish, but by default they don't have to. Stefan