Eli Zaretskii wrote: > > From: Randomneo > > > > 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,