* bug#1987: emacs22 python mode doesn't indent all valid "finally" blocks
@ 2009-01-22 6:55 dsheets
2010-08-23 1:01 ` Chong Yidong
0 siblings, 1 reply; 2+ messages in thread
From: dsheets @ 2009-01-22 6:55 UTC (permalink / raw)
To: bug-gnu-emacs
"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@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
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#1987: emacs22 python mode doesn't indent all valid "finally" blocks
2009-01-22 6:55 bug#1987: emacs22 python mode doesn't indent all valid "finally" blocks dsheets
@ 2010-08-23 1:01 ` Chong Yidong
0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2010-08-23 1:01 UTC (permalink / raw)
To: dsheets; +Cc: 1987
> "finally" block indentation does not work correctly for "try"
> constructs with more than one clause.
This should be fixed now. Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-23 1:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-22 6:55 bug#1987: emacs22 python mode doesn't indent all valid "finally" blocks dsheets
2010-08-23 1:01 ` Chong Yidong
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).