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 #16 received at 59009-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: kobarity <kobarity <at> gmail.com>
Cc: 59009-done <at> debbugs.gnu.org, rostislav9999 <at> gmail.com
Subject: Re: bug#59009: python mode indentation behavior fix
Date: Thu, 10 Nov 2022 12:26:48 +0200
> Date: Mon, 07 Nov 2022 22:57:48 +0900
> From: kobarity <kobarity <at> gmail.com>
> Cc: Randomneo <rostislav9999 <at> gmail.com>,
> 	59009 <at> debbugs.gnu.org
> 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.

Thanks, installed.




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.