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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#59009: closed (python mode indentation behavior fix)
Date: Thu, 10 Nov 2022 10:27:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 10 Nov 2022 12:26:48 +0200
with message-id <837d03rtp3.fsf <at> gnu.org>
and subject line Re: bug#59009: python mode indentation behavior fix
has caused the debbugs.gnu.org bug report #59009,
regarding python mode indentation behavior fix
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
59009: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59009
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Randomneo <rostislav9999 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: python mode indentation behavior fix
Date: Thu, 3 Nov 2022 18:41:42 +0300
[Message part 3 (text/plain, inline)]
This patch will fix this bug #42513
<https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42513>.
Also problems with same behaviour with pair of statements when one of them
is multiline with prantaces like https://pastebin.com/Z1yFbMtp.

with best regards Misiura Rostislav
[Message part 4 (text/html, inline)]
[0001-python.el-Opening-block-search-fix.patch (text/x-patch, attachment)]
[Message part 6 (message/rfc822, inline)]
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.