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" >> >> 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