Subject: Re: bug#59009: python mode indentation behavior fix

From: kobarity <[email-masked]>
Date: Mon, 07 Nov 2022 22:57:48 +0900

Eli Zaretskii wrote:
> > From: Randomneo <[email-masked]>
> > 
> > This patch will fix this bug #42513.
> 
> kobarity, any comments on this patch?

Hello,

Unfortunately, the presented patch breaks the ERT
python-indent-electric-colon-4.

I think the problem lies in the forward-line after block-start
detection.  The while loop is used to detect indentation inside the
block, so if block-start spans multiple lines, it should start at the
next line.  To address this issue, I propose to add
python-nav-end-of-statement before forward-line.  Attached is the
patch with an ERT.

Regards,