Re: [Python-mode] script with indentation problems - Bug 818669

2011-08-10 Thread Andreas Röhler

Am 09.08.2011 10:18, schrieb Glenn Linderman:

On 8/8/2011 10:59 PM, Andreas Röhler wrote:

Hi,




3) Line 1266 (authlist = None). Point in column 1. Hit TAB.



... Hit TAB again, and it gets indented 8 spaces
instead 4.


at my machine it stays at current-indentation with TAB, which is
a new behavior


Are you saying you are testing with a newer version than this morning's?
I still see this behavior except that it sometimes happens with the
second TAB, and sometimes with the third.

What I don't understand is why TAB would ever move text more than one
indent at a time (8 character positions instead of 4).



Hi Glenn,

restored the good old cycling behavior.
New design remains available as py-indent-line-new.

Please make a bug entry should something still don't work as expected.

Also known indent bugs should be gone now.

Thanks again for the reports,

Andreas




___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


Re: [Python-mode] script with indentation problems - Bug 818669

2011-08-10 Thread Glenn Linderman

On 8/10/2011 1:11 AM, Andreas Röhler wrote:

restored the good old cycling behavior.
New design remains available as py-indent-line-new. 


I'm not sure what cycling behavior means?  Is that documented somewhere?

What I would expect, is that if point arrives at a line, and the text 
starts somewhere other than the appropriate default position on the 
line, and point is before the text starts, that the first TAB would move 
the text to the appropriate default position on the line.


Subsequent TAB should move the text one indent to the right.

What I was seeing was that the second TAB would move text two indents to 
the right.  Or sometimes the second TAB would do nothing, and then the 
third TAB would move text two indents to the right.  Is there ever a 
situation where a TAB should move text more than one indent to the right?


I'll grab your latest branch after some sleep and test again... thanks!
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


Re: [Python-mode] script with indentation problems - Bug 818669

2011-08-10 Thread Andreas Röhler

Am 10.08.2011 10:52, schrieb Glenn Linderman:

On 8/10/2011 1:11 AM, Andreas Röhler wrote:

restored the good old cycling behavior.
New design remains available as py-indent-line-new.


I'm not sure what cycling behavior means? Is that documented somewhere?



Now, and presumely earlier also, it's the following:

when called at the outermost permitted indent it jumps back to column 0.
From there it steps every py-indent-offset until outermost is reached 
again.


py-indent-line-new in contrast always jumps to the outermost. Backspace 
is needed then jumping py-indent-offset steps back every hit.


What about restricting RET to newline and _not_ indent BTW?
In contrast to C-j - newline and indent.

Andreas

___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


Re: [Python-mode] script with indentation problems - Bug 818669

2011-08-10 Thread Barry Warsaw
On Aug 10, 2011, at 06:09 PM, Andreas Röhler wrote:

What about restricting RET to newline and _not_ indent BTW?

Please no!  You will physically hurt all of us dinosaurs. :)

-Barry


signature.asc
Description: PGP signature
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode