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: python.el patch proposal: Respect `prog-indentation-context'. Date: Tue, 30 Jun 2015 09:53:11 -0400 Message-ID: References: <87lhffjv0j.fsf@tromey.com> <87mvziny6v.fsf@tromey.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1435672415 6976 80.91.229.3 (30 Jun 2015 13:53:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Jun 2015 13:53:35 +0000 (UTC) Cc: "Wedler, Christoph" , "fgallina@gnu.org" , "emacs-devel@gnu.org" To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 30 15:53:27 2015 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 1Z9vyY-0002pY-GT for ged-emacs-devel@m.gmane.org; Tue, 30 Jun 2015 15:53:26 +0200 Original-Received: from localhost ([::1]:47133 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9vyY-0002j6-0W for ged-emacs-devel@m.gmane.org; Tue, 30 Jun 2015 09:53:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9vyQ-0002hH-Ss for emacs-devel@gnu.org; Tue, 30 Jun 2015 09:53:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9vyP-0004S5-SG for emacs-devel@gnu.org; Tue, 30 Jun 2015 09:53:18 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:38867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9vyK-0004PD-K6; Tue, 30 Jun 2015 09:53:12 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t5UDrBYQ006967; Tue, 30 Jun 2015 09:53:11 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 2BF02660ED; Tue, 30 Jun 2015 09:53:11 -0400 (EDT) In-Reply-To: <87mvziny6v.fsf@tromey.com> (Tom Tromey's message of "Mon, 29 Jun 2015 12:53:28 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.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 RV5353=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5353> : inlines <3303> : streams <1463971> : uri <1972994> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:187668 Archived-At: > The basic idea, I think, would be to let the mode(s) change the syntax > table when needed; and to have these changes be recorded by syntax.el so > that syntax-ppss and friends could use the correct syntax table for a > given region. Right, AFAIK, the way syntax-ppss works, it should already be possible to make it work right without any changes to submodes. It would just require changes in syntax.el or having the outer mode install pieces of advice on some of the syntax.el functions. Stefan