From chris@foote.com.au Fri Jul 31 00:23:00 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 31 Jul 2009 07:23:00 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6V7MtDh001111 for ; Fri, 31 Jul 2009 00:22:57 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWmS6-0007RC-Vr for bug-gnu-emacs@gnu.org; Fri, 31 Jul 2009 03:22:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWmS2-0007Qz-2R for bug-gnu-emacs@gnu.org; Fri, 31 Jul 2009 03:22:54 -0400 Received: from [199.232.76.173] (port=50965 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWmS2-0007Qw-0v for bug-gnu-emacs@gnu.org; Fri, 31 Jul 2009 03:22:50 -0400 Received: from mx20.gnu.org ([199.232.41.8]:29508) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWmS1-0003tK-F6 for bug-gnu-emacs@gnu.org; Fri, 31 Jul 2009 03:22:49 -0400 Received: from ping.foote.com.au ([203.161.156.93]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWmRx-0000OP-2l for bug-gnu-emacs@gnu.org; Fri, 31 Jul 2009 03:22:45 -0400 Received: by ping.foote.com.au (Postfix, from userid 5001) id EBEFC5E04E; Fri, 31 Jul 2009 16:52:38 +0930 (CST) Received: from sed.foote.com.au (202-6-145-31.static.adam.com.au [202.6.145.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: chris@foote.com.au) by ping.foote.com.au (Postfix) with ESMTPSA id 701265E01F for ; Fri, 31 Jul 2009 16:52:33 +0930 (CST) Message-ID: <4A729BB8.9070702@foote.com.au> Date: Fri, 31 Jul 2009 16:52:32 +0930 From: Chris Foote User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 23.1; autoindent problem with new exception formatting in lisp/progmodes/python.el X-Enigmail-Version: 0.96.0 OpenPGP: id=B3CC1B68 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Python2.5 introduced the available use of "finally" with "except" in the same "try" exception handling block. The standard GNU Emacs Python mode (python.el) won't perform an autoindent correctly when the code reaches the "finally" clause - e.g.: def myfunc(): try: foo() except Bar, e: pass else: foo() finally: this patch fixes the problem for me: --- python.el.orig 2009-06-21 14:08:04.000000000 +0930 +++ python.el.new 2009-07-31 16:27:27.000000000 +0930 @@ -748,7 +748,7 @@ '(("else" "if" "elif" "while" "for" "try" "except") ("elif" "if" "elif") ("except" "try" "except") - ("finally" "try" "except")) + ("finally" "else" "try" "except")) "Alist of keyword matches. The car of an element is a keyword introducing a statement which can close a block opened by a keyword in the cdr.") From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 26 18:30:47 2010 Received: (at control) by debbugs.gnu.org; 26 Jan 2010 23:30:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NZuru-0007T2-KW for submit@debbugs.gnu.org; Tue, 26 Jan 2010 18:30:46 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NZurr-0007Sx-Nw for control@debbugs.gnu.org; Tue, 26 Jan 2010 18:30:45 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NZurn-0006t9-V7; Tue, 26 Jan 2010 18:30:39 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19295.31519.904844.407688@fencepost.gnu.org> Date: Tue, 26 Jan 2010 18:30:39 -0500 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: green X-Ran: >}`-'Fh^dkSE/I)@v{MEc.12\Y~;a\F2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) unarchive 3867 unarchive 3869 unarchive 3916 merge 3867 3869 3916 severity 3944 important unmerge 3951 tags 3991 patch From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 22 20:44:22 2010 Received: (at 3991) by debbugs.gnu.org; 23 Aug 2010 00:44:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnL9C-0000yp-MD for submit@debbugs.gnu.org; Sun, 22 Aug 2010 20:44:22 -0400 Received: from pantheon-po23.its.yale.edu ([130.132.50.117]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnL9A-0000yj-Gh for 3991@debbugs.gnu.org; Sun, 22 Aug 2010 20:44:21 -0400 Received: from furry (173-9-75-145-NewEngland.hfc.comcastbusiness.net [173.9.75.145]) (authenticated bits=0) by pantheon-po23.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o7N0jZZZ032343 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 22 Aug 2010 20:45:35 -0400 Received: by furry (Postfix, from userid 1000) id 8A05A16D402; Sun, 22 Aug 2010 20:45:35 -0400 (EDT) From: Chong Yidong To: Chris Foote Subject: Re: 23.1; autoindent problem with new exception formatting in lisp/progmodes/python.el Date: Sun, 22 Aug 2010 20:45:35 -0400 Message-ID: <87hbim17io.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 3991 Cc: 3991@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) > Python2.5 introduced the available use of "finally" with > "except" in the same "try" exception handling block. The > standard GNU Emacs Python mode (python.el) won't perform an > autoindent correctly when the code reaches the "finally" > clause > > this patch fixes the problem for me: Thanks. I've checked it into the repository. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 22 20:44:30 2010 Received: (at control) by debbugs.gnu.org; 23 Aug 2010 00:44:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnL9J-0000z0-Se for submit@debbugs.gnu.org; Sun, 22 Aug 2010 20:44:30 -0400 Received: from pantheon-po23.its.yale.edu ([130.132.50.117]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnL9I-0000yv-Mq for control@debbugs.gnu.org; Sun, 22 Aug 2010 20:44:28 -0400 Received: from furry (173-9-75-145-NewEngland.hfc.comcastbusiness.net [173.9.75.145]) (authenticated bits=0) by pantheon-po23.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o7N0jibF032363 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 22 Aug 2010 20:45:45 -0400 Received: by furry (Postfix, from userid 1000) id D402516D402; Sun, 22 Aug 2010 20:45:44 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 3991 Date: Sun, 22 Aug 2010 20:45:44 -0400 Message-ID: <87eidq17if.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) close 3991 thanks From unknown Fri Aug 15 02:05:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 20 Sep 2010 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator