GNU bug report logs - #71293
29.3; indentation issue for Python mode

Previous Next

Package: emacs;

Reported by: Fabrice Salvaire <fabrice.salvaire <at> orange.fr>

Date: Fri, 31 May 2024 14:53:01 UTC

Severity: normal

Found in version 29.3

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Fabrice Salvaire <fabrice.salvaire <at> orange.fr>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 71293 <at> debbugs.gnu.org
Subject: Re: bug#71293: 29.3; indentation issue for Python mode
Date: Fri, 31 May 2024 18:57:03 +0200
[Message part 1 (text/plain, inline)]
Le 31/05/2024 à 17:45, Eli Zaretskii a écrit :
>> Date: Fri, 31 May 2024 16:52:26 +0200
>> From:  Fabrice Salvaire via "Bug reports for GNU Emacs,
>>   the Swiss army knife of text editors"<bug-gnu-emacs <at> gnu.org>
>>
>> I observed many times indentation issues for modern Python 3.
>>
>> For examples:
>> ```
>> class Foo:
>> def __init__(self, ...):
>> self.foo = ... # TAB won't indent to pos+4
>> ```
>>
>> A workaround is sometimes to close and reopen the file.
>> Thus I suspect a wrong state.
>> But I don't found any explanation.
>>
>> I am using Python mode with treesitter enabled but I think it is not yet used for indentation ???
> I think this is already fixed on the master branch.  Can you try it?

Can I just try a more recent python.el ?

I am using Fedora 39 Emacs 29.3

[Message part 2 (text/html, inline)]

This bug report was last modified 245 days ago.

Previous Next


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