469,590 Members | 2,464 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Re: Emacs users: feedback on diffs between python-mode.el andpython.el?

sk**@pobox.com wrote:
If you're an Emacs user who has used both python-mode.el (the python mode
code distributed with Python and XEmacs) and python.el (the python mode code
distributed with GNU Emacs), I'd like to get your impressions on how they
compare and where you feel the bugs lie. I'm nominally one of the
python-mode.el maintainers (though not very active) but have never tried the
GNU python.el.
One of the two modes (if memory serves, python.el) has an annoying
bug/feature where indent-region is essentially implemented as "hit tab
once on every line in the region". Of course, this frequently does the
wrong thing as "tab" has to guess the right indentation in cases where
there are multiple possibilities. So this frequently messes up the
semantics of the code.

This is the main reason why I always use the other mode (if memory
serves, python-mode.el) these days, which keeps the logical structure of
the code intact with indent-region.

I frequently use (setq py-indent-offset 4) + indent-region to reformat
my old code which used 2-space indents, so this is a feature that is
important to me.

Malte

Oct 16 '08 #1
0 722

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Wezzy | last post: by
IDE
49 posts views Thread by Thomas Lindgaard | last post: by
5 posts views Thread by Darren Dale | last post: by
81 posts views Thread by julio | last post: by
reply views Thread by Skip Montanaro | last post: by
1 post views Thread by psbasha | last post: by
5 posts views Thread by levander | last post: by
331 posts views Thread by Xah Lee | last post: by
4 posts views Thread by Richard Szopa | last post: by
14 posts views Thread by jmDesktop | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.