From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: python.el patch proposal: Respect `prog-indentation-context'. Date: Mon, 29 Jun 2015 12:53:28 -0600 Message-ID: <87mvziny6v.fsf@tromey.com> References: <87lhffjv0j.fsf@tromey.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1435604045 13932 80.91.229.3 (29 Jun 2015 18:54:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jun 2015 18:54:05 +0000 (UTC) Cc: "fgallina@gnu.org" , Tom Tromey , "emacs-devel@gnu.org" To: "Wedler\, Christoph" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 29 20:53:53 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 1Z9eBl-0001MR-2h for ged-emacs-devel@m.gmane.org; Mon, 29 Jun 2015 20:53:53 +0200 Original-Received: from localhost ([::1]:43597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9eBk-0003Ty-8O for ged-emacs-devel@m.gmane.org; Mon, 29 Jun 2015 14:53:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9eBg-0003SP-GQ for emacs-devel@gnu.org; Mon, 29 Jun 2015 14:53:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9eBc-0001vx-Cb for emacs-devel@gnu.org; Mon, 29 Jun 2015 14:53:48 -0400 Original-Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:55011) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Z9eBc-0001uz-47 for emacs-devel@gnu.org; Mon, 29 Jun 2015 14:53:44 -0400 Original-Received: (qmail 26307 invoked by uid 0); 29 Jun 2015 18:53:38 -0000 Original-Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy5.mail.unifiedlayer.com with SMTP; 29 Jun 2015 18:53:37 -0000 Original-Received: from box522.bluehost.com ([74.220.219.122]) by cmgw2 with id mJlw1q0062f2jeq01Jlzkw; Mon, 29 Jun 2015 12:46:02 -0600 X-Authority-Analysis: v=2.1 cv=ItWNLtPg c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=zstS-IiYAAAA:8 a=a4K5GIyuExAA:10 a=PnD2wP_eR3oA:10 a=VxUPR0dhdI0A:10 a=XAFQembCKUMA:10 a=UnnwD1GPAAAA:8 a=F1NYlYZsZqUYQ-waUVQA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=4dOq7V2qz3rabvZ8y2Rml0qjudqP8iBUowlMZFq6CpA=; b=gUQSBKbaLNLOruwhYOeomADmGRpvHOu+n8hUwmC2pPhch+dkxsdRIbSkjWGoxaSDmg3QdPmg8HUMRh/vGi+E5gG8t26krQtCT5Lcs1KvKEQjNNQaWlYnR5LVOTUNV8t0; Original-Received: from [65.128.57.180] (port=40707 helo=pokyo) by box522.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.84) (envelope-from ) id 1Z9eBP-0008Gj-En; Mon, 29 Jun 2015 12:53:31 -0600 X-Attribution: Tom In-Reply-To: (Christoph Wedler's message of "Mon, 22 Jun 2015 13:38:00 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 65.128.57.180 authed with tom+tromey.com} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 67.222.38.55 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:187649 Archived-At: >>>>> "Christoph" == Wedler, Christoph writes: Christoph> But you are right, one should aim for improvements here, too. At the Christoph> moment, it has lesser priority for me - after all, wrong syntax Christoph> highlighting just corrupts the appearance of the code whereas wrong 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. While digging around I found this in syntax.el: ;;; Todo: ;; - do something about the case where the syntax-table is changed. So I suppose it is just a known problem. 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. Tom