What is the correct behavior of pressing tab from column 0?

Asked by Ryan Kaskel

def foo():
    try:
        x = True
    except:
        y = True

If you put the cursor on column 0 of the line "x = True" and press tab, notice how it dedents one level.

Is this the intended behavior? If the cursor is on the "x" and you press tab "x = True" moves to column 0.

Thanks!

Question information

Language:
English Edit question
Status:
Answered
For:
python-mode.el Edit question
Assignee:
Andreas Roehler Edit question
Last query:
Last reply:
Revision history for this message
Andreas Roehler (a-roehler) said :
#1

In the precise case both examples indicate bugs.

The second bug is fixed just now with revision 673.

May I ask you to make a report from first question and link this?

Thanks!

Andreas

Revision history for this message
Andreas Roehler (a-roehler) said :
#2

When indent is below maximal reasonable indent, TAB should increase indent one level.

Revision history for this message
Andreas Roehler (a-roehler) said :
#3

Can you help with this problem?

Provide an answer of your own, or ask Ryan Kaskel for more information if necessary.

To post a message you must log in.