allowing braces around suites

Wolfram Kraus kraus at hagen-partner.de
Fri Aug 27 09:02:28 EDT 2004


Kjetil Torgrim Homme wrote:
[...]
>>  Regardless of history, it looks to me like your problem could be
>>  better solved by modifying your emacs mode to consider whitespace
>>  more correctly -- AFAICT there is no reason why it should ever
>>  pick up the logging line in your example and indent it to the same
>>  level as the else: block.
> 
> 
> how can Emacs tell?  if I press TAB and thus ask Emacs to re-indent
> the line, that's what it will do.  arguably, the correct fix is to
> disable the "clever" re-indentation code of Emacs since it's too easy
> to fool it, but this makes coding more awkward in other cases.  it
> also doesn't solve cut-n-paste errors.

You can use C-c < or C-c > in Emacs to (de-)indent regions.

Wolfram



More information about the Python-list mailing list