[Python-mode] myrkwid bug with backspace/delete

Barry Warsaw barry at python.org
Fri Apr 1 22:49:14 CEST 2011


On Apr 01, 2011, at 10:45 PM, Andreas Röhler wrote:

>Am 01.04.2011 21:58, schrieb Barry Warsaw:
>> On Apr 01, 2011, at 12:31 PM, Andreas Röhler wrote:
>>
>>> checked in fixes.  Also cured a mistake of 745208'-fix, where python- and
>>> emacs-lisp logic has been came across...
>>
>> Thanks Andreas!  Things are looking better, but still not quite perfect. ;)
>>
>> -----snip snip-----
>> def foo():
>>      a = bar(one=1,
>>              two=2,
>>              three=3)
>> -----snip snip-----
>>
>> Put point at the closing parenthesis and hit return.  You get lined up under
>> the 't' in 'three' whereas you should be lined up under the 'a'.
>
>Hi Berry,
>
>it's lined below `t' indicating the multiline character.

Right.  But after the closing of the bar() function call, the next line can't
possibly occur under the 't' because you'll get an IndentationError:

-----snip snip-----
def foo():
    a = bar(one=1,
            two=2,
            three=3)
            x = 7
-----snip snip-----
>>> ## working on region in file /tmp/python-16786-mj.py...
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tmp/python-16786-mj.py", line 5
    x = 7
    ^
IndentationError: unexpected indent

>I'm afraid we are here in a sphere, were people will ask for different styles.
>
>Unless I miss something.

Perhaps I didn't explain it well.  Does the above example (default behavior
for current myrkwid branch) make sense?

>What about storing that as a bug report and coming back at a later time?
>
>BTW after merge would adress the execute/shell/unicode errors.
>
>OTOH if you think it must be now it will be now... :-)

This one I think has to be fixed now :)

Cheers,
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-mode/attachments/20110401/f5c6e1d2/attachment.pgp>


More information about the Python-mode mailing list