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#63959: python-mode does not keep indentation in square brackets [] Date: Fri, 09 Jun 2023 14:21:24 +0300 Message-ID: <83mt18285n.fsf@gnu.org> References: <0a9099c91a3cd323c78e08fb6263d11fe66429bb.camel@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8054"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , 63959@debbugs.gnu.org To: Konstantin Kharlamov , kobarity Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 09 16:37:49 2023 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 1q7dFD-0001bg-As for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Jun 2023 16:37:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7aBv-0000Xd-V9; Fri, 09 Jun 2023 07:22:03 -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 1q7aBu-0000XG-0J for bug-gnu-emacs@gnu.org; Fri, 09 Jun 2023 07:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q7aBt-0000lP-Nx for bug-gnu-emacs@gnu.org; Fri, 09 Jun 2023 07:22:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7aBt-0004PX-Jp for bug-gnu-emacs@gnu.org; Fri, 09 Jun 2023 07:22:01 -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, 09 Jun 2023 11:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63959 X-GNU-PR-Package: emacs Original-Received: via spool by 63959-submit@debbugs.gnu.org id=B63959.168630968416902 (code B ref 63959); Fri, 09 Jun 2023 11:22:01 +0000 Original-Received: (at 63959) by debbugs.gnu.org; 9 Jun 2023 11:21:24 +0000 Original-Received: from localhost ([127.0.0.1]:58484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7aBI-0004OY-1y for submit@debbugs.gnu.org; Fri, 09 Jun 2023 07:21:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7aBG-0004OM-BX for 63959@debbugs.gnu.org; Fri, 09 Jun 2023 07:21:22 -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 1q7aBA-0000iB-TS; Fri, 09 Jun 2023 07:21:16 -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=sSc6kD56w69HKqrxxxDk+SvdbvL8peW52bDivQunwo0=; b=DFcNC9Pjh6LO eh3gunn/98NntsAvQXsnBaXm9yudUO4cijwPZd+ELlbw4zGKE0XFRjzzrnPeJZW8KYXnZxRJDtUrc E3xm1SWyyXHdNFSBQqBzUhboAi898AGLlcYFqD9S9SlgN5Ga7bLtr75T7Vena82+r2sG3+eYEuLu7 0jjpdgdTYpXMtmRMfkD6DvdzguqohVyCGkrMcVtCp1yzmnnwdgDbfwO8G3jTTL8aYqs1rTLZxhP32 8CZmc7KHwQrWH2IhxFESQypdeJrZnOdQPYaWUSH+5I5GHBoxamdtb20cHYSHK5NlI2eo9aW/Zojpz ImlcPxHIcRRS8JVodwG0KQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7aBA-0005KV-A3; Fri, 09 Jun 2023 07:21:16 -0400 In-Reply-To: <0a9099c91a3cd323c78e08fb6263d11fe66429bb.camel@yandex.ru> (message from Konstantin Kharlamov on Thu, 08 Jun 2023 12:39:23 +0300) 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:263165 Archived-At: > From: Konstantin Kharlamov > Date: Thu, 08 Jun 2023 12:39:23 +0300 > > Usually in programming modes, when previous indentation is kind of "special", > the new lines should keep the indentation from the previous line. However, it > doesn't work in this case. > > > # Steps to reproduce > > 1. Create file `test.py` with following content: > > for infix in [ # some description > "_cdata", "_cmeta", "_corig", "_cpool", "_cvol", "_wcorig", > "indentation is broken here", "bar"]: > print(infix) > > 2. Open it as `emacs -Q test.py` > 3. Put a caret on the 3rd line (which says "indentation is broken" > 4. Press TAB > > > ## Expected > > Indentation won't change > > ## Actual > > The line goes back by 4 spaces or so > > # Additional information > > emacs version: compiled from latest git a week ago, commit 5cace109d2b kobarity, any comments?