[Python-mode] [Bug 873372] [NEW] Comment indented incorrectly after inline comment

Barry Warsaw barry at python.org
Thu Oct 13 19:32:15 CEST 2011


On Oct 13, 2011, at 06:41 PM, Andreas Röhler wrote:

>Am 13.10.2011 16:37, schrieb Barry Warsaw:
>> On Oct 13, 2011, at 02:18 PM, Ryan Kaskel wrote:
>>
>>> Another little comment bug:
>>>
>>> ---------------------
>>> foo = True # the next line is indented incorrectly
>>>             # to here
>>> ----------------------
>>>
>>> I think it should line up with 'f' in 'foo'.
>>
>> I'm not sure I agree entirely.  I tend to avoid these types of comments, but I
>> think this one is worth a discussion on the mailing list.
>>
>
>so cc to it.
>
>I'm in favor of the present behavior BTW.
>
>However agree, there are two reasonable positions of a following indent.
>
>Would support a request that way:
>
>when cursor is at the indented comment in second line, a dedent should reach
>the column 0.

In this case, but in cases where there is leading indentation, a dedent would
reach that column.  Right?

>Agreed?

Seems reasonable to me.

-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/20111013/bf6fa91a/attachment.pgp>


More information about the Python-mode mailing list