GNU bug report logs - #59009
python mode indentation behavior fix

Previous Next

Package: emacs;

Reported by: Randomneo <rostislav9999 <at> gmail.com>

Date: Fri, 4 Nov 2022 04:58:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 59009 <at> debbugs.gnu.org (full text, mbox):

From: kobarity <kobarity <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 59009 <at> debbugs.gnu.org, Randomneo <rostislav9999 <at> gmail.com>
Subject: Re: bug#59009: python mode indentation behavior fix
Date: Mon, 07 Nov 2022 22:57:48 +0900
[Message part 1 (text/plain, inline)]
Eli Zaretskii wrote:
> > From: Randomneo <rostislav9999 <at> gmail.com>
> > 
> > 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,
[0001-Fix-indentation-for-multi-line-block-start-in-Python.patch (application/octet-stream, attachment)]

This bug report was last modified 2 years and 272 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.