From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#63959: python-mode does not keep indentation in square brackets [] Date: Sat, 01 Jul 2023 09:57:48 -0400 Message-ID: References: <0a9099c91a3cd323c78e08fb6263d11fe66429bb.camel@yandex.ru> <83mt18285n.fsf@gnu.org> <45d2d886ba9bd52f33c588c457cfc0338f504eca.camel@yandex.ru> <93804360-aafe-fe2f-46fa-f2fca67d9add@easy-emacs.de> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11456"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , Andreas =?UTF-8?Q?R=C3=B6hler?= , Konstantin Kharlamov , 63959@debbugs.gnu.org To: kobarity Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 01 16:01:22 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 1qFbAA-0002l3-Gv for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Jul 2023 16:01:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFb8G-00037t-Ur; Sat, 01 Jul 2023 09:59:24 -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 1qFb7u-0002iN-U8 for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2023 09:59:04 -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 1qFb7u-0007rz-KI for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2023 09:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qFb7u-00034p-Ew for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2023 09:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Jul 2023 13:59:02 +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.168821988511745 (code B ref 63959); Sat, 01 Jul 2023 13:59:02 +0000 Original-Received: (at 63959) by debbugs.gnu.org; 1 Jul 2023 13:58:05 +0000 Original-Received: from localhost ([127.0.0.1]:58395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFb6y-00033M-W1 for submit@debbugs.gnu.org; Sat, 01 Jul 2023 09:58:05 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:58661) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFb6w-00032e-K6 for 63959@debbugs.gnu.org; Sat, 01 Jul 2023 09:58:03 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 321E0100115; Sat, 1 Jul 2023 09:57:56 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 4C1431000C4; Sat, 1 Jul 2023 09:57:55 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1688219875; bh=+oHQeAT4gc0CU6Z7FJgzgyTW5QCNyI87d+fveJ/7Zyk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=MVwAknMYiheoHl+OpMo6MhH0lAP8jDvI8Fwn+GlyvJGVl+ONXSl2HAWGjtklB4UYC x+TurjPrOGQn15ocNeOOLXpjIs6WqmxXH3xmmtM/Enhdaz0xfGwAYj5GxJQfFGBxeh zTvoe0CFfDw/Pf9h604TOK2soBVaTbElNTAByMP9grxmAWktJiHW5o5g/IpsZmmhkt d8Mn+S+QWQbVcL8bN2nX1iUrhVhakpd/dt3mGdJsIIIcTHM/DPaAIsjPjoXobj5TrT WukMeS4vvTSRzUW4/rkCO0/gnLJFRa/ppPwcTfzozg4Uz74TQpWGhgzTPZkS6yJYxC 4X/TLixnPQaDQ== Original-Received: from pastel (69-165-155-162.dsl.teksavvy.com [69.165.155.162]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1B8EF1204E5; Sat, 1 Jul 2023 09:57:55 -0400 (EDT) In-Reply-To: (kobarity@gmail.com's message of "Sat, 01 Jul 2023 22:42:55 +0900") 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:264406 Archived-At: > I would consider making the indentation the same as the previous line > inside the parens a fix rather than a new feature. Definitely. It might also fix a performance bug (when re-indenting line by line a long parenthesized list of things, always going back to the beginning can make the overall indentation O(N=B2) rather than O(N), where N is the number of lines). Stefan