Why whitespace denotation of blocks doesn't work.
David Arnold
arnold at dstc.monash.edu.au
Tue Jun 20 12:31:13 EDT 2000
-->"Ted" == Ted Drain <ted.drain at jpl.nasa.gov> writes:
Ted> I'll write some code, and as I start debugging/prototyping/etc
Ted> etc, I find that I have to enclose some existing code in a
Ted> control block (if,etc). With C/C++, I just put the code in
Ted> brace, tell xemacs to re-indent the block, and everything's
Ted> good. With Python, I have to hand edit everything because the
Ted> editor can't figure out how to do the indentation after I've
Ted> inserted the control block.
if you're using xemacs, i presume you're using python-mode. in
python-mode, C-c > and C-c < indent and dedent the current region.
d
More information about the Python-list
mailing list