From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Salvaire via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#71293: 29.3; indentation issue for Python mode Date: Fri, 31 May 2024 18:57:03 +0200 Message-ID: References: <86ikyuouig.fsf@gnu.org> Reply-To: Fabrice Salvaire Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------q0BJo6qVfUtxFL0jEuCquNPK" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37590"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 71293@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 31 18:58:14 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 1sD5a2-0009ce-Tq for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 31 May 2024 18:58:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sD5Zg-0005R1-5Z; Fri, 31 May 2024 12:57:52 -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 1sD5Zf-0005Ql-05 for bug-gnu-emacs@gnu.org; Fri, 31 May 2024 12:57:51 -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 1sD5Ze-0007qb-O3 for bug-gnu-emacs@gnu.org; Fri, 31 May 2024 12:57:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sD5Zp-0001kW-Jp for bug-gnu-emacs@gnu.org; Fri, 31 May 2024 12:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Fabrice Salvaire Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 May 2024 16:58:01 +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.17171746426676 (code B ref 71293); Fri, 31 May 2024 16:58:01 +0000 Original-Received: (at 71293) by debbugs.gnu.org; 31 May 2024 16:57:22 +0000 Original-Received: from localhost ([127.0.0.1]:55270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sD5ZB-0001jb-PO for submit@debbugs.gnu.org; Fri, 31 May 2024 12:57:22 -0400 Original-Received: from smtp-21.smtpout.orange.fr ([80.12.242.21]:51126 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sD5Z7-0001jN-1D for 71293@debbugs.gnu.org; Fri, 31 May 2024 12:57:19 -0400 Original-Received: from [192.168.1.2] ([82.124.140.120]) by smtp.orange.fr with ESMTPA id D5YtsFHVQGyzYD5Yts79z0; Fri, 31 May 2024 18:57:04 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr; s=t20230301; t=1717174624; bh=1/tekBIAZxtFrYlpQlAuefxsl6nBCgzHto5JOdMp8Fk=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=hEYLB4QwF1Afy5IDyuwi5EplhybTK18+/TcmbgcX++0E4p6T1BUkvpOMZiqujmE4e eXEWyQLcH+pvIr4pCJaqLo+dWYVPFGgLGi9s6s1AsiUrTfwek3XE2VsTcDXJXMICRQ VkxJfCM/eL+Tb4cd1IdYRLatYHQu/+/WBsI/3BDYPxg9GJZ1isuYVWrVpHwC0+LnHS HtuT0bDnuMLv07OX2TsoDKQhGuBGd5T4rvcY+E4eW0JLlKCoeQTqkuYhmNJKf9Xqht kYoqKzRAjCboyAM30AZsSVGDx0cH2I6pH4vPMHrOA2kFwyKELg3AviioO3NIEVZ9M7 SE5A1PuBvvjVA== X-ME-Helo: [192.168.1.2] X-ME-Auth: ZmFicmljZS5zYWx2YWlyZUB3YW5hZG9vLmZy X-ME-Date: Fri, 31 May 2024 18:57:04 +0200 X-ME-IP: 82.124.140.120 Content-Language: fr-FR, en-GB In-Reply-To: <86ikyuouig.fsf@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:286287 Archived-At: This is a multi-part message in MIME format. --------------q0BJo6qVfUtxFL0jEuCquNPK Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------q0BJo6qVfUtxFL0jEuCquNPK Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
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@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


--------------q0BJo6qVfUtxFL0jEuCquNPK--