GNU bug report logs -
#1987
emacs22 python mode doesn't indent all valid "finally" blocks
Previous Next
Reported by: dsheets <at> MIT.EDU
Date: Thu, 22 Jan 2009 07:05:05 UTC
Severity: normal
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1987 in the body.
You can then email your comments to 1987 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#1987
; Package
emacs
.
(Thu, 22 Jan 2009 07:05:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
dsheets <at> MIT.EDU
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Thu, 22 Jan 2009 07:05:06 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
"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 <dsheets <at> mit.edu>
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:
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <tab> <down> <tab> <down> <up> <up> <down-mouse-1>
<mouse-1> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<menu-bar> <help-menu> <emacs-problems> <next> <next>
<next> <next> <next> <next> <next> <next> <next> <next>
<next> <next> <next> <next> <next> <next> <next> <next>
<next> <next> <next> <next> <next> <next> <next> <next>
<next> <next> <next> <next> <next> <next> <next> <next>
<next> <next> <next> <next> <next> <next> <next> <next>
<next> <next> <next> <next> <next> <next> <next> 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 <down-mouse-1> <mouse-1> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<menu-bar> <help-menu> <about> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <help-echo> <help-echo> <help-echo> <help-echo>
<menu-bar> <buffer> "decorators.py" <down-mouse-1>
<mouse-1> C-x C-s <right> <tab> <down> <tab> <up> <tab>
<up> <end> <return> <tab> e l s e : <return> <tab>
p a s s <down> <tab> <down> <tab> <up> <up> <tab> <up>
<tab> <down> <end> <return> <return> <tab> t r y :
<tab> <return> <tab> p a s s <down> <tab> <down> <tab>
<up> <tab> <up> <tab> <up> <tab> <up> <down> <down>
<end> <return> <tab> e l s e : <return> <tab> p a s
s <tab> <up> <tab> <up> <tab> <up> <tab> <down> <tab>
<down> <tab> <down> <tab> <down> <tab> <down> <tab>
<help-echo> <down-mouse-1> <mouse-1> M-x r e p o r
t - e m a c s - b u g <return>
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
bug reassigned from package `emacs' to `emacs,python'.
Request was from
Juanma Barranquero <lekktu <at> gmail.com>
to
control <at> emacsbugs.donarmstrong.com
.
(Sat, 24 Jan 2009 13:30:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#1987
; Package
emacs
.
(Mon, 23 Aug 2010 01:01:01 GMT)
Full text and
rfc822 format available.
Message #10 received at 1987 <at> debbugs.gnu.org (full text, mbox):
> "finally" block indentation does not work correctly for "try"
> constructs with more than one clause.
This should be fixed now. Thanks.
bug closed, send any further explanations to dsheets <at> MIT.EDU
Request was from
Chong Yidong <cyd <at> stupidchicken.com>
to
control <at> debbugs.gnu.org
.
(Mon, 23 Aug 2010 01:02:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 20 Sep 2010 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 270 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.