470,613 Members | 2,505 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,613 developers. It's quick & easy.

Emacs python mode indent levels

Since Python has no explcit ends to blocks, emacs doesn't always know
the right indentation level to use. And <del> doesn't seem to be very
consistent (it always seems to go back 8 characters, which doesn't
help when the indent level is 4).

Another language where indentation is significant is Haskell. The
emacs Haskell mode has an excellent solution to the problem: Pushing
<tab> cycles through the various possible indentations.

Does anyone know if anything like this is possible with Python mode?
Or are there any other popular solutions?

(I am not an elipser)

--
John.
Jul 18 '05 #1
2 2648

John> Another language where indentation is significant is Haskell. The
John> emacs Haskell mode has an excellent solution to the problem:
John> Pushing <tab> cycles through the various possible indentations.

John> Does anyone know if anything like this is possible with Python
John> mode? Or are there any other popular solutions?

Probably. <wink>...

Feel free to file a feature request with the python-mode project on
SourceForge. If we get to it, we get to it.

Speaking of which, if you find reviewing and responding to bug/patch reports
for Python beneath you, perhaps you'd like to hone your ELisp chops a bit:

http://sf.net/projects/python-mode

Feel free to review submissions, fix bugs, etc. Operators are standing
by...

Skip

Jul 18 '05 #2
On 14 Jul 2004 20:22:07 -0700, John Fouhy <jf****@paradise.net.nz> wrote:
Since Python has no explcit ends to blocks, emacs doesn't always know
the right indentation level to use. And <del> doesn't seem to be very
consistent (it always seems to go back 8 characters, which doesn't
help when the indent level is 4).
are you using python-mode.el? It works fine here...
Another language where indentation is significant is Haskell. The
emacs Haskell mode has an excellent solution to the problem: Pushing
<tab> cycles through the various possible indentations.
I'd say go talk to the python-mode people [1]

Does anyone know if anything like this is possible with Python mode?
Or are there any other popular solutions?

(I am not an elipser)


does that mean you don't fit ellipses [2]? :-P
References:

1) http://python-mode.sf.net
2) http://groups.google.com/groups?thre...ing.google.com

--
John Lenton (jl*****@gmail.com) -- Random fortune:
bash: fortune: command not found
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Tuxtrax | last post: by
3 posts views Thread by porterboy | last post: by
12 posts views Thread by Rex Eastbourne | last post: by
12 posts views Thread by Thomas Bartkus | last post: by
4 posts views Thread by emin.shopper | last post: by
6 posts views Thread by eugene.morozov | last post: by
3 posts views Thread by Grant Edwards | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.