From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Wedler, Christoph" Newsgroups: gmane.emacs.devel Subject: RE: python.el patch proposal: Respect `prog-indentation-context'. Date: Thu, 2 Jul 2015 09:13:10 +0000 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; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1435828408 9264 80.91.229.3 (2 Jul 2015 09:13:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jul 2015 09:13:28 +0000 (UTC) Cc: "fgallina@gnu.org" , "emacs-devel@gnu.org" To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 02 11:13: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 1ZAaYg-0005Uz-NZ for ged-emacs-devel@m.gmane.org; Thu, 02 Jul 2015 11:13:26 +0200 Original-Received: from localhost ([::1]:35415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAaYf-0008KO-T9 for ged-emacs-devel@m.gmane.org; Thu, 02 Jul 2015 05:13:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAaYc-0008KI-Jg for emacs-devel@gnu.org; Thu, 02 Jul 2015 05:13:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAaYb-00050a-O6 for emacs-devel@gnu.org; Thu, 02 Jul 2015 05:13:22 -0400 Original-Received: from smtpgw04.sap-ag.de ([155.56.66.99]:50107 helo=smtpgw.sap-ag.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAaYV-0004vc-Cv; Thu, 02 Jul 2015 05:13:15 -0400 Thread-Topic: python.el patch proposal: Respect `prog-indentation-context'. Thread-Index: AQHQspzqxgM9xZuvxkGL3SfZ+8QoYp3H6QhQ In-Reply-To: <87mvziny6v.fsf@tromey.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.21.40.114] X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 155.56.66.99 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:187707 Archived-At: Christoph> But you are right, one should aim for improvements here, too. A= t the Christoph> moment, it has lesser priority for me - after all, wrong syntax Christoph> highlighting just corrupts the appearance of the code whereas wr= ong Christoph> indentation corrupts the code itself. > I asked because it seems to me that many mode indenters look at the > syntax to decide what to do. You are right - I put "setting the syntax table of the inner mode" on my TODO list as well. > While digging around I found this in syntax.el: > > ;;; Todo: > ;; - do something about the case where the syntax-table is changed. As I bind syntax-ppss-cache and syntax-ppss-last to nil around the inner mode indentation, this might already work - at least if I do not set the inner mode's syntax-propertize function... (there are probably not too many Python triple quotes strings in grammar actions...) - Christoph