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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Fabrice Salvaire <fabrice.salvaire <at> orange.fr>
Cc: 71293 <at> debbugs.gnu.org
Subject: Re: bug#71293: 29.3; indentation issue for Python mode
Date: Fri, 31 May 2024 18:45:11 +0300
> 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?




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.