Emacs and Indentation
Cliff Wells
LogiplexSoftware at earthlink.net
Wed Nov 6 14:03:53 EST 2002
On Wed, 2002-11-06 at 07:37, Michael Tiller wrote:
[snip]
> does nothing in Emacs (v21.4, windows). So, I have to go and indent using
> the TAB key. The problem there is that Emacs doesn't really understand the
> block structure so I get:
>
> for x in mylist:
> if not x in filled:
> foo[x] = x[1]
> bar[x] = x[2]
> y = x # Yikes!
>
[snip]
>
> Surely I can't be the only person who is bugged by this? Are there ways
> around this?
You can also put a "pass" at the end of a block and emacs will treat
that as a block delimiter (at least in python-mode). Sort of ugly IMO
but if this really bothers you it may be worth a try.
--
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308 (800) 735-0555 x308
More information about the Python-list
mailing list