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: Fri, 19 Jun 2015 14:36:12 -0600 Message-ID: <87lhffjv0j.fsf@tromey.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1434746221 31200 80.91.229.3 (19 Jun 2015 20:37:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Jun 2015 20:37:01 +0000 (UTC) Cc: "fgallina@gnu.org" , "emacs-devel@gnu.org" To: "Wedler\, Christoph" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 19 22:36:49 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 1Z631q-0008Oa-V4 for ged-emacs-devel@m.gmane.org; Fri, 19 Jun 2015 22:36:47 +0200 Original-Received: from localhost ([::1]:59910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z631p-00072A-Sb for ged-emacs-devel@m.gmane.org; Fri, 19 Jun 2015 16:36:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z631c-000724-BY for emacs-devel@gnu.org; Fri, 19 Jun 2015 16:36:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z631Y-0002FM-5v for emacs-devel@gnu.org; Fri, 19 Jun 2015 16:36:32 -0400 Original-Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:53605) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Z631X-0002EI-T5 for emacs-devel@gnu.org; Fri, 19 Jun 2015 16:36:28 -0400 Original-Received: (qmail 14127 invoked by uid 0); 19 Jun 2015 20:36:21 -0000 Original-Received: from unknown (HELO CMOut01) (10.0.90.82) by gproxy5.mail.unifiedlayer.com with SMTP; 19 Jun 2015 20:36:21 -0000 Original-Received: from box522.bluehost.com ([74.220.219.122]) by CMOut01 with id iLRv1q00X2f2jeq01LRyWT; Fri, 19 Jun 2015 14:26:00 -0600 X-Authority-Analysis: v=2.1 cv=Jc8v8y6V c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=udL4O0NGDEAA:10 a=zstS-IiYAAAA:8 a=PnD2wP_eR3oA:10 a=zxv4jSZfPCgA:10 a=XAFQembCKUMA:10 a=UnnwD1GPAAAA:8 a=jT20v95iqD3-P2Blk-MA: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=mDaMOOohNiRvJrtEmyOD2ZsUI0Mv+9tK5J8PuaodVSc=; b=ELuqg+Fqdqw4zajfj6xWmJ/H5tmzQIzqWLtVSYPjGw8M+1Kb+52DCabzikDNregEayChSiyWF+a2AR8nQaJ01w8StOrgQB2SIaF6SWbtxrNh4JGCacCJgf+GBE7hFKEk; Original-Received: from [71.218.201.176] (port=41551 helo=bapiya) by box522.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.84) (envelope-from ) id 1Z631M-0001ur-7z; Fri, 19 Jun 2015 14:36:16 -0600 X-Attribution: Tom In-Reply-To: (Christoph Wedler's message of "Fri, 19 Jun 2015 14:05:12 +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 71.218.201.176 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:187328 Archived-At: >>>>> "Christoph" == Wedler, Christoph writes: Hi. I'm supportive of your project. I think it is great to see some advances in this area in the core. Christoph> (save-restriction Christoph> - (widen) Christoph> + (prog-widen) Christoph> (let ((ppss (save-excursion Christoph> (beginning-of-line) Christoph> (syntax-ppss)))) I'm curious how you plan to extend your approach to handle syntax-ppss as well. It seems to me that the sub-mode has to be able to change the syntax table at the mode boundaries; and furthermore that this also has to be done during font-lock so that syntactic font-locking works correctly in all the parts of the buffer. If you already discussed this and I missed it, let me know and I can go search the archives. I don't remember seeing any mention of it, so I thought I'd ask. Tom