From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dsheets@MIT.EDU Newsgroups: gmane.emacs.bugs Subject: bug#1987: emacs22 python mode doesn't indent all valid "finally" blocks Date: Thu, 22 Jan 2009 01:55:12 -0500 (EST) Message-ID: <200901220655.n0M6tCRb025603@outgoing-legacy.mit.edu> Reply-To: dsheets@MIT.EDU, 1987@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1232615219 14414 80.91.229.12 (22 Jan 2009 09:06:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2009 09:06:59 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 22 10:08:11 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LPvXk-00060a-RF for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jan 2009 10:08:09 +0100 Original-Received: from localhost ([127.0.0.1]:53394 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPvWT-0001Qq-5u for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jan 2009 04:06:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPtuW-0004zB-RV for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 02:23:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPtuV-0004xu-3Z for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 02:23:31 -0500 Original-Received: from [199.232.76.173] (port=39294 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPtuU-0004xi-Tv for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 02:23:30 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55538) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LPtuU-0000Dt-Ba for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 02:23:30 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0M7NS4r026018; Wed, 21 Jan 2009 23:23:28 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0M755gM021519; Wed, 21 Jan 2009 23:05:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: dsheets@MIT.EDU Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 22 Jan 2009 07:05:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 1987 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123260735819417 (code B ref -1); Thu, 22 Jan 2009 07:05:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 22 Jan 2009 06:55:58 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0M6tnk4019411 for ; Wed, 21 Jan 2009 22:55:51 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPtTh-0006DH-9i for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 01:55:49 -0500 Original-Received: from [199.232.76.173] (port=38326 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPtTf-0006D9-PV for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 01:55:47 -0500 Original-Received: from south-station-annex.mit.edu ([18.72.1.2]:48224) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LPtTf-0006Jg-EO for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 01:55:47 -0500 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id n0M6tPWt024613 for ; Thu, 22 Jan 2009 01:55:25 -0500 (EST) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.13.6/8.9.2) with ESMTP id n0M6tFZc007497 for ; Thu, 22 Jan 2009 01:55:17 -0500 (EST) Original-Received: from localhost (SENIOR-ONE-SIXTY-EIGHT.MIT.EDU [18.244.5.168]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id n0M6tCRb025603 for ; Thu, 22 Jan 2009 01:55:15 -0500 (EST) X-Scanned-By: MIMEDefang 2.42 X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 22 Jan 2009 02:23:31 -0500 X-Mailman-Approved-At: Thu, 22 Jan 2009 04:06:44 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:24380 Archived-At: "finally" block indentation does not work correctly for "try" constructs with more than one clause. To wit: if True: try: print "try" except: print "except" else: print "else" finally: print "finally" The mode states simply that this indentation of "finally" is the "sole indentation". If I find the Right Thing to do, I will report back, of course. Thanks, David Sheets In GNU Emacs 22.1.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-05-02 on king, modified by Ubuntu Windowing system distributor `The X.Org Foundation', version 11.0.10400090 configured using `configure '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.1/leim' '--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Python Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t Recent input: C-s p y t h o n C-g C-s C-s p y t h o n C-s C-s C-s C-s C-s C-s "decorators.py" C-x C-s e l s e : p a s s t r y : p a s s e l s e : p a s s M-x r e p o r t - e m a c s - b u g Recent messages: Loading easy-mmode...done Loading outline...done View mode: type C-h for help, h for commands, q to quit. Quit Mark saved where search started Wrote /home/dsheets/Desktop/Code/Hive/decorators.py Auto-saving...done Loading emacsbug... Loading regexp-opt...done Loading emacsbug...done