From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#71293: 29.3; indentation issue for Python mode Date: Fri, 31 May 2024 18:45:11 +0300 Message-ID: <86ikyuouig.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20860"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71293@debbugs.gnu.org To: Fabrice Salvaire Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 31 17:46:15 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sD4SN-0005GO-5H for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 31 May 2024 17:46:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sD4S1-000518-GP; Fri, 31 May 2024 11:45:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sD4Rz-00050f-Rr for bug-gnu-emacs@gnu.org; Fri, 31 May 2024 11:45:52 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sD4Rz-0002dW-J5 for bug-gnu-emacs@gnu.org; Fri, 31 May 2024 11:45:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sD4SA-0002Wd-Eh for bug-gnu-emacs@gnu.org; Fri, 31 May 2024 11:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 May 2024 15:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71293 X-GNU-PR-Package: emacs Original-Received: via spool by 71293-submit@debbugs.gnu.org id=B71293.17171703329659 (code B ref 71293); Fri, 31 May 2024 15:46:02 +0000 Original-Received: (at 71293) by debbugs.gnu.org; 31 May 2024 15:45:32 +0000 Original-Received: from localhost ([127.0.0.1]:55199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sD4Rg-0002Vi-5n for submit@debbugs.gnu.org; Fri, 31 May 2024 11:45:32 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sD4Re-0002VW-5D for 71293@debbugs.gnu.org; Fri, 31 May 2024 11:45:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sD4RN-0002aq-1l; Fri, 31 May 2024 11:45:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=EsI2Ou0Jn09gFcycrUC96nIKIdtj22lHxMcoBNOpp5Y=; b=TbJrpUCSalaJ z7TPW94hyCgoKfeR5xWhucih6XIgL72F5irFVNlWhJO2km745GJe3otc5H6dYo39vI0Y7FGOrnJQe Or8C368ext3rowMy9AL/cdN0xfvCljLknEGbeODvELA8FGzairRSrZfZg5lo7HO41NvSI4LMszzbr +jviittHU9sTIeb3QU+uuP47d+Mmc7uU65gyyRz4x6hLgXkeGBMaXqHcPn7gCMPTscooo1n0MYQvv oFlcX4V9Jn0yEw2I1eTcpJTFEvq7pitiFZZNpF30NojeImpdn4VG9IpaDzpy1uJQb8fl4pvvmuPdo LwGagb3ZU4kvgNkw/GiIpw==; In-Reply-To: (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286282 Archived-At: > 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?