do people really complain about significant whitespace?

Slawomir Nowaczyk slawomir.nowaczyk.847 at student.lu.se
Thu Aug 10 06:43:53 EDT 2006


On Wed, 09 Aug 2006 07:33:41 -0700
Rob Wolfe <blue99 at interia.pl> wrote:

#> Slawomir Nowaczyk wrote:
#> 
#> > Really, typing brace after function/if/etc should add newlines and
#> > indent code as required -- automatically. Actually, for me, it is even
#> > *less* typing in C and similar languages... I probably should teach my
#> > Emacs to automatically add newline after colon in Python, just as it
#> > does after a brace in C... As soon as I figure out how to deal with
#> > dictionary literals. Hmmm.
#> 
#> Are you sure? My Emacs already know how to do it with the help
#> of python-mode and magic function py-newline-and-indent.
#> 
#> emacs-version "21.3.1"
#> py-version "$Revision: 4.63 $"

OK, my python-mode.el was older, so I upgraded to 4.75, but it still
doesn't work. Did you mean that after you write

if x==1:

the newline is inserted automatically when you type ":"? That's a
functionality I would like to see, but it doesn't seem to work this
way.

Anyway, I am using python.el most of the time and it doesn't have that
functionality yet.

-- 
 Best wishes,
   Slawomir Nowaczyk
     ( Slawomir.Nowaczyk at cs.lth.se )

Live in the past and future only.




More information about the Python-list mailing list