GNU bug report logs - #20560
24.5; I am not happy with the new Python mode indentation behaviour

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Fabrice Salvaire <fabrice.salvaire@HIDDEN>; Keywords: confirmed; merged with #33979; dated Tue, 12 May 2015 15:44:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs@HIDDEN> to internal_control <at> debbugs.gnu.org. Full text available.

Message received at 20560 <at> debbugs.gnu.org:


Received: (at 20560) by debbugs.gnu.org; 18 Sep 2020 11:11:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 18 07:11:40 2020
Received: from localhost ([127.0.0.1]:41051 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kJEIm-0001R0-4b
	for submit <at> debbugs.gnu.org; Fri, 18 Sep 2020 07:11:40 -0400
Received: from quimby.gnus.org ([95.216.78.240]:52878)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1kJEIk-0001Qm-NK
 for 20560 <at> debbugs.gnu.org; Fri, 18 Sep 2020 07:11:39 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=gieM/uRg/BsZt+oHmMcFbUvo+juJhzUt9rr4+o8tNAk=; b=d/Ks1pyN3ZPXOVaGhWMxFs+eiJ
 +iH0+72pukVteR2Hf1Vm9U6IkFWnc0O86YYUt77WEnE3YzKXU4DQnv0cUZn0evBzfN8D/rKOgdy2Y
 xtmM9LrNBvRuM/w9PrYdA3OGsjlPuTDZQxG+fwUXKJWYIrvq2HAiVJVTbmzbYzlNzM1E=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1kJEIc-00052J-3T; Fri, 18 Sep 2020 13:11:32 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Noam Postavsky <npostavs@HIDDEN>
Subject: Re: bug#20560: bug#20742: 24.5; [PATCH] python.el: fix close paren
 indentation to match pep8
References: <CAEFOACZwFq7T-9yginNyQ3hd72tssYykcE9wh3RXXRQQvsJ=Eg@HIDDEN>
 <CAEFOACbOfz2oO1sg9MRaFg_O11NFo5MLNt9BAvRDgRt3+jz+2Q@HIDDEN>
 <87wpc8bdjk.fsf@HIDDEN> <87sguctn78.fsf@HIDDEN>
 <87r1r0kz62.fsf@HIDDEN>
 <CAM-tV-9fQuwbAqHGLmOW_SzSSuFHkWvzFbzmryH45-PfECq1gA@HIDDEN>
X-Now-Playing: Stina Nordenstam's _Dynamite_: "CQD"
Date: Fri, 18 Sep 2020 13:11:28 +0200
In-Reply-To: <CAM-tV-9fQuwbAqHGLmOW_SzSSuFHkWvzFbzmryH45-PfECq1gA@HIDDEN>
 (Noam Postavsky's message of "Thu, 17 Sep 2020 15:22:10 -0400")
Message-ID: <87ft7fjq5b.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Noam Postavsky <npostavs@HIDDEN> writes: > You're mixing
 up bugs, I think. As far as I know, 20560/33979 isn't > fixed. I had closed
 20742/19906 already when pushing that commit. OK; reopening. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 20560
Cc: 20560 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Noam Postavsky <npostavs@HIDDEN> writes:

> You're mixing up bugs, I think. As far as I know, 20560/33979 isn't
> fixed. I had closed 20742/19906 already when pushing that commit.

OK; reopening.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20560; Package emacs. Full text available.

Message received at 20560 <at> debbugs.gnu.org:


Received: (at 20560) by debbugs.gnu.org; 17 Sep 2020 19:22:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 17 15:22:32 2020
Received: from localhost ([127.0.0.1]:39119 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kIzUG-0004AY-AW
	for submit <at> debbugs.gnu.org; Thu, 17 Sep 2020 15:22:32 -0400
Received: from mail-oi1-f181.google.com ([209.85.167.181]:42494)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>) id 1kIzUE-0004AL-Ux
 for 20560 <at> debbugs.gnu.org; Thu, 17 Sep 2020 15:22:31 -0400
Received: by mail-oi1-f181.google.com with SMTP id x14so3765823oic.9
 for <20560 <at> debbugs.gnu.org>; Thu, 17 Sep 2020 12:22:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=mJkoyD2rDdYCJayyMH8D1GHbRq6ytrxZ1PDqOT2w4X0=;
 b=oGv0UGgJ1CvJOSHxDhEoDQvG63NpvtfU4ade9FdiC5oRAga5TW/7AMYzetN+4uokzG
 qWPKHYbl7MIW8yXjRE/ObimzLzUf4/FCTHCLqN1Y+x/XYcfKg1rRYtAf1maxvfnX1BhD
 O8JOvne20EO4mxP8hjaZNNFx+FZq81saEYS00HDK2COOKN0M5xjFpSzCV9jP8r/mw+jm
 5O/8qqUojVy+llHrUtH5PC9oRdSQ8Bn/gaKIeprVi9VK01IubC9ROmP+Kq1qhiwp48iA
 O9iilQc/qLVL/htsm5ATlpzcLbHEP0CU6jxLhUb3SkujOTL+yzTP0PSnGQNj3JPaCcPB
 ifJQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=mJkoyD2rDdYCJayyMH8D1GHbRq6ytrxZ1PDqOT2w4X0=;
 b=AiUoojpVnnI3dmlC0xHYepbK3TFz0x5j5XWoe07h22fu2rc04F335DYzGpiqDw4Ai9
 1mdS0Mbt7s2+8ZFJfLqd+I7sC9BBZwEumkfCTaijvo3Zz9A7X3kMM2DFmyXlB6DrS5uY
 i0yUS34Vqssz9pPaA/VFD2oipWkvaNb94O3RX4bTv+0NHSk3wOfNzR16sFK+MhUFZhEE
 DNk9YqgV3S72Guue6nZW26I50DjssQk+wCIFQtVCQXF3TFE426b2a4fmHx+L5qLWh0j+
 E8gh2W+BcLGnLMzB3kAYF7jUViYdkoUPLs9Fq/GxTFyu26C+1bENWeTPF3kuA0LXiaTL
 NFZQ==
X-Gm-Message-State: AOAM530IFez38uuys/ce5To8CHQVha4OwM4iwitv5Zz6rlnQXOllyICC
 xnLKFojfqaFNgrNBDzgMEGPruTwRJA7Y0UJwNy8gKH15
X-Google-Smtp-Source: ABdhPJwibNpF9hQHYYroF4/tmNrNXuHRckTao6RGhgi1twQSW3PVm6d723UeygfsN/ADAtnCpR5q+q6rMvyGiCdfEA4=
X-Received: by 2002:a05:6808:a9a:: with SMTP id
 q26mr6889271oij.87.1600370545292; 
 Thu, 17 Sep 2020 12:22:25 -0700 (PDT)
MIME-Version: 1.0
References: <CAEFOACZwFq7T-9yginNyQ3hd72tssYykcE9wh3RXXRQQvsJ=Eg@HIDDEN>
 <CAEFOACbOfz2oO1sg9MRaFg_O11NFo5MLNt9BAvRDgRt3+jz+2Q@HIDDEN>
 <87wpc8bdjk.fsf@HIDDEN> <87sguctn78.fsf@HIDDEN>
 <87r1r0kz62.fsf@HIDDEN>
In-Reply-To: <87r1r0kz62.fsf@HIDDEN>
From: Noam Postavsky <npostavs@HIDDEN>
Date: Thu, 17 Sep 2020 15:22:10 -0400
Message-ID: <CAM-tV-9fQuwbAqHGLmOW_SzSSuFHkWvzFbzmryH45-PfECq1gA@HIDDEN>
Subject: Re: bug#20742: 24.5; [PATCH] python.el: fix close paren indentation
 to match pep8
To: Lars Ingebrigtsen <larsi@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 20560
Cc: 20560 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Thu, 17 Sep 2020 at 14:59, Lars Ingebrigtsen <larsi@HIDDEN> wrote:

> Looks like this was done, so I'm closing this bug report.

>     python.el: Fix close paren indentation to match pep8 (Bug#20742)
>
>     * lisp/progmodes/python.el (python-indent--calculate-indentation):
>     When opening paren is followed by newline the closing paren should
>     follow the current indentation.  Otherwise the closing paren should be
>     aligned with the opening paren.  This fixes the latter case.
                                                      ^^^^^^

You're mixing up bugs, I think. As far as I know, 20560/33979 isn't
fixed. I had closed 20742/19906 already when pushing that commit.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20560; Package emacs. Full text available.
bug closed, send any further explanations to 20560 <at> debbugs.gnu.org and Fabrice Salvaire <fabrice.salvaire@HIDDEN> Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 20560 <at> debbugs.gnu.org:


Received: (at 20560) by debbugs.gnu.org; 17 Sep 2020 18:59:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 17 14:59:13 2020
Received: from localhost ([127.0.0.1]:39061 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kIz7g-0007ia-Ru
	for submit <at> debbugs.gnu.org; Thu, 17 Sep 2020 14:59:13 -0400
Received: from quimby.gnus.org ([95.216.78.240]:44642)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>)
 id 1kIz7f-0007iI-M5; Thu, 17 Sep 2020 14:59:12 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=h8FPsN+yo89SPnKsjBZlPGAFU7bl11PpuQaDmuSoE+4=; b=AzxbqvF5KXLMtNbsApauZVunrA
 xTGeMeTA6p9pWthIw1pJP//f8rUJzjxHSpN1ZG/woLCuDtlbGA1Mmcu1xHL1JiMrVVU1LrHsryYqk
 SudGwfRH1TXQ6hop+PsQFwBqQZ3krHVh0SV3lNNL9XmiA+chZyG0sV7lWjHX6Qf1T73Y=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1kIz7W-0003qm-F9; Thu, 17 Sep 2020 20:59:05 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Noam Postavsky <npostavs@HIDDEN>
Subject: Re: bug#20742: 24.5; [PATCH] python.el: fix close paren indentation
 to match pep8
References: <CAEFOACZwFq7T-9yginNyQ3hd72tssYykcE9wh3RXXRQQvsJ=Eg@HIDDEN>
 <CAEFOACbOfz2oO1sg9MRaFg_O11NFo5MLNt9BAvRDgRt3+jz+2Q@HIDDEN>
 <87wpc8bdjk.fsf@HIDDEN> <87sguctn78.fsf@HIDDEN>
X-Now-Playing: Neil Young's _Tonight's the Night_: "Mellow My Mind"
Date: Thu, 17 Sep 2020 20:59:01 +0200
In-Reply-To: <87sguctn78.fsf@HIDDEN> (Noam Postavsky's message of "Sat, 20
 Apr 2019 16:51:23 -0400")
Message-ID: <87r1r0kz62.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Noam Postavsky <npostavs@HIDDEN> writes: > I managed to
 get this applied; I've replaced the python-test.el > modifications, partly
 because they're written as updates to the existing > tests which makes them
 a bit harder to follow, and partly [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 20560
Cc: 20742 <at> debbugs.gnu.org, Tommi Komulainen <tommi.komulainen@HIDDEN>,
 20560 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Noam Postavsky <npostavs@HIDDEN> writes:

> I managed to get this applied; I've replaced the python-test.el
> modifications, partly because they're written as updates to the existing
> tests which makes them a bit harder to follow, and partly to make more
> clear that the patch is below the 15 line copyright limit.
>
> I'll push to master in a week or so if there are no further comments.

Looks like this was done, so I'm closing this bug report.

commit 3fc1d77a43818666542740fc34167c1faee30d5f
Author:     Tommi Komulainen <tommi.komulainen@HIDDEN>
AuthorDate: Fri Jun 19 18:53:52 2015 +0200
Commit:     Noam Postavsky <npostavs@HIDDEN>
CommitDate: Sun Apr 28 16:45:13 2019 -0400

    python.el: Fix close paren indentation to match pep8 (Bug#20742)
    
    * lisp/progmodes/python.el (python-indent--calculate-indentation):
    When opening paren is followed by newline the closing paren should
    follow the current indentation.  Otherwise the closing paren should be
    aligned with the opening paren.  This fixes the latter case.


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20560; Package emacs. Full text available.
Removed tag(s) patch. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Forcibly Merged 20560 33979. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Disconnected #20560 from all other report(s). Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 20560 <at> debbugs.gnu.org:


Received: (at 20560) by debbugs.gnu.org; 20 Apr 2019 20:58:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 20 16:58:47 2019
Received: from localhost ([127.0.0.1]:46867 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hHx4R-0006gi-Bk
	for submit <at> debbugs.gnu.org; Sat, 20 Apr 2019 16:58:47 -0400
Received: from mail-qk1-f170.google.com ([209.85.222.170]:46432)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1hHx4O-0006gM-DK; Sat, 20 Apr 2019 16:58:45 -0400
Received: by mail-qk1-f170.google.com with SMTP id w73so2418018qkb.13;
 Sat, 20 Apr 2019 13:58:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=rOkax71soJsVa/zbc4JmCRuFVirc1U2iiw7j1dk2FF4=;
 b=mHdtPEeBoNqRU32hSx3xV0xKXIFrbF+4HPRm1Bf31Zrv4y54fl976gpLe7nCUTMuqF
 4GKSGuiHq4QVXzy126ty2Rs4SM2ovaMA1DYto+mAi9Ma4IkPv5bodzJQZ9hNg4OWCqiZ
 fFvmxqoC2AtquKMYgpRVCnV65UXTEI7iQcRuQ3T42WbvyQKqNvQOsedwzNHXESlqhCqY
 FWtMEED+PcNn9vsCWeUy/KORGiLsKh7rPW+BH0kHCw87OIYJqjsOUy3dOxUkAEuk3/XK
 /bv7zloID+igVd5GMAqVODiUb3VPf2b73fOoPPsjlTKr2QnQkxgSuCubeomqZl94C7EJ
 4eag==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=rOkax71soJsVa/zbc4JmCRuFVirc1U2iiw7j1dk2FF4=;
 b=Jap9lGm38A3nMjhmRshwkW9t7euwo0xPyiiFifxahHw/KkmojW+8ZV5udOQOYlplqx
 C3wnNIB8mlu9xMviQraQTsDmD7Tr1S7ficWqwswbZEkgwZBsGwWQ2EtkVEKJGcG3r8xu
 qN5upi4959lnK5GTxYO6Auhkn4DLj/xXxdFyIMflK9OmDt73IRtCpxtwwoe57/vWhDvA
 M3TWnmmXU+/bx2Qx8i85Hqnqa4gDPT838IagT3lpqR7n5zJwu/neN7fzWug3AdBv6Wlb
 DlMh+s9ZQanz0qGWZ9LmJ2hew/Lcy6zU8ODxcEk5r0/A0X0m0YxX+4nAZ1oDUKt1CHGO
 T04Q==
X-Gm-Message-State: APjAAAUjmbWoLp8+e+FLoW2YZNhPGXixEbSnSEAj2npIIaEStw4kSdlc
 y8zmoKATSrJ6BNgre/YAV6j+GTn/
X-Google-Smtp-Source: APXvYqwTZgTTKL/DmvhvK7xNOrfzSj8euKp/XNFk2rjerusp3sfDCqqO5nRt8xN1kEAIIti8vwMl2A==
X-Received: by 2002:a05:620a:1438:: with SMTP id
 k24mr8369372qkj.165.1555793918747; 
 Sat, 20 Apr 2019 13:58:38 -0700 (PDT)
Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
 by smtp.googlemail.com with ESMTPSA id
 s30sm4027832qkm.43.2019.04.20.13.58.37
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sat, 20 Apr 2019 13:58:38 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#20560: 24.5;
 I am not happy with the new Python mode indentation behaviour
References: <5551D233.1090202@HIDDEN> <mnwq0dzsoh.fsf@HIDDEN>
Date: Sat, 20 Apr 2019 16:58:37 -0400
In-Reply-To: <mnwq0dzsoh.fsf@HIDDEN> (Glenn Morris's message of
 "Tue, 12 May 2015 12:06:38 -0400")
Message-ID: <87pnpgtmv6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 20560
Cc: Fabrice Salvaire <fabrice.salvaire@HIDDEN>, 20560 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

# patch for 20742 doesn't help for 20560
unmerge 20560
forcemerge 33979 20560
quit

Glenn Morris <rgm@HIDDEN> writes:

> Fabrice Salvaire wrote:
>
>> my_list = [
>> ____1, 2, 3,
>> ____4, 5, 6,
>> ]
>
> When I type that, I get an error, so perhaps it is not intended:
>
> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
>   =(nil 5)
>   python-syntax-closing-paren-p()
>   (and (python-syntax-closing-paren-p) (progn (forward-char 1) (not (nth 1 (or nil (syntax-ppss))))))
>   (if (and (python-syntax-closing-paren-p) (progn (forward-char 1) (not (nth 1 (or nil (syntax-ppss)))))) (progn (cons :inside-paren-at-closing-paren start)))
>   (save-excursion (skip-syntax-forward " ") (if (and (python-syntax-closing-paren-p) (progn (forward-char 1) (not (nth 1 (or nil (syntax-ppss)))))) (progn (cons :inside-paren-at-closing-paren start))))

I'm not getting this anymore, perhaps it's been fixed in the meantime
(I've tested only in 25.3 and 26.2, I don't have 24.5 building at the
moment).

At any rate, the OP seems to be the same as 33979 (though different from
20742 which it was previously merged to).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20560; Package emacs. Full text available.
Added tag(s) patch. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 19906 20560 20742. Request was from fgallina@HIDDEN (Fabián Ezequiel Gallina) to control <at> debbugs.gnu.org. Full text available.
Merged 20560. Request was from fgallina@HIDDEN (Fabián Ezequiel Gallina) to control <at> debbugs.gnu.org. Full text available.

Message received at 20560 <at> debbugs.gnu.org:


Received: (at 20560) by debbugs.gnu.org; 12 May 2015 16:06:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 12 12:06:43 2015
Received: from localhost ([127.0.0.1]:42561 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YsChe-00036a-8B
	for submit <at> debbugs.gnu.org; Tue, 12 May 2015 12:06:42 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:57160 ident=Debian-exim)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <rgm@HIDDEN>) id 1YsChb-00036R-Gq
 for 20560 <at> debbugs.gnu.org; Tue, 12 May 2015 12:06:40 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
 (envelope-from <rgm@HIDDEN>)
 id 1YsCha-0002hI-I6; Tue, 12 May 2015 12:06:38 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Fabrice Salvaire <fabrice.salvaire@HIDDEN>
Subject: Re: bug#20560: 24.5;
 I am not happy with the new Python mode indentation behaviour
References: <5551D233.1090202@HIDDEN>
X-Spook: UFO HAMASMOIS SP4 Aldergrove Commecen jihad Noriega Putin
X-Ran: 6<Jex,P%d^1!!AJ1?W=PkGPa'TV2P`cZ?kOrwXe][%ghh3<O~7WiCw]ugK1g]GgT35t:BB
X-Hue: cyan
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Tue, 12 May 2015 12:06:38 -0400
In-Reply-To: <5551D233.1090202@HIDDEN> (Fabrice Salvaire's message of "Tue, 
 12 May 2015 12:13:07 +0200")
Message-ID: <mnwq0dzsoh.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 20560
Cc: 20560 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Fabrice Salvaire wrote:

> my_list = [
> ____1, 2, 3,
> ____4, 5, 6,
> ]

When I type that, I get an error, so perhaps it is not intended:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  =(nil 5)
  python-syntax-closing-paren-p()
  (and (python-syntax-closing-paren-p) (progn (forward-char 1) (not (nth 1 (or nil (syntax-ppss))))))
  (if (and (python-syntax-closing-paren-p) (progn (forward-char 1) (not (nth 1 (or nil (syntax-ppss)))))) (progn (cons :inside-paren-at-closing-paren start)))
  (save-excursion (skip-syntax-forward " ") (if (and (python-syntax-closing-paren-p) (progn (forward-char 1) (not (nth 1 (or nil (syntax-ppss)))))) (progn (cons :inside-paren-at-closing-paren start))))

> automatically, but I would prefer manual indentation than to fight
> against my editor.

Sounds like you want to turn off electric-indent-mode.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20560; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 12 May 2015 15:43:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 12 11:43:15 2015
Received: from localhost ([127.0.0.1]:42544 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YsCKw-0000zK-8e
	for submit <at> debbugs.gnu.org; Tue, 12 May 2015 11:43:15 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39722)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <fabrice.salvaire@HIDDEN>) id 1Ys7Bg-0007zo-VG
 for submit <at> debbugs.gnu.org; Tue, 12 May 2015 06:13:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <fabrice.salvaire@HIDDEN>) id 1Ys7Ba-0003Iw-Uo
 for submit <at> debbugs.gnu.org; Tue, 12 May 2015 06:13:15 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:37886)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <fabrice.salvaire@HIDDEN>) id 1Ys7Ba-0003Is-SQ
 for submit <at> debbugs.gnu.org; Tue, 12 May 2015 06:13:14 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:53227)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <fabrice.salvaire@HIDDEN>) id 1Ys7BZ-00024p-Pj
 for bug-gnu-emacs@HIDDEN; Tue, 12 May 2015 06:13:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <fabrice.salvaire@HIDDEN>) id 1Ys7BW-0003Hm-IP
 for bug-gnu-emacs@HIDDEN; Tue, 12 May 2015 06:13:13 -0400
Received: from smtp03.smtpout.orange.fr ([80.12.242.125]:58956
 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <fabrice.salvaire@HIDDEN>) id 1Ys7BW-0003H4-Ax
 for bug-gnu-emacs@HIDDEN; Tue, 12 May 2015 06:13:10 -0400
Received: from salus.localdomain ([213.41.136.101]) by mwinf5d50 with ME
 id SyD71q00F2BSCth03yD8vb; Tue, 12 May 2015 12:13:08 +0200
X-ME-Helo: salus.localdomain
X-ME-Auth: ZmFicmljZS5zYWx2YWlyZUB3YW5hZG9vLmZy
X-ME-Date: Tue, 12 May 2015 12:13:08 +0200
X-ME-IP: 213.41.136.101
Message-ID: <5551D233.1090202@HIDDEN>
Date: Tue, 12 May 2015 12:13:07 +0200
From: Fabrice Salvaire <fabrice.salvaire@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: bug-gnu-emacs@HIDDEN
Subject: 24.5; I am not happy with the new Python mode indentation behaviour
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 12 May 2015 11:43:12 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Dear Emacs devs,

I noticed after an Emacs update the Python mode changed its indentation 
behaviour.

I checked my .emacs and .gnu-emacs-custion for settings that could 
interfere with the Python mode, but I found anything.

First it imposes a newer indentation style, the closing 
brace/bracket/parenthesis on multi-line constructs line up under the 
first character of the line that starts the multi-line construct:

my_list = [
____1, 2, 3,
____4, 5, 6,
]

while I have thousands lines of codes typed on Emacs where  the closing 
character is indented, e.g.:

my_list = [
____1, 2, 3,
____4, 5, 6,
____]

Moreover if you press enter in the following construct at the location 
marked by *  to add an empty line or to add codes after the if:

if foo:
____a = 1
*a = 2

then the line is automatically indented:

if foo:
____a = 1

____a = 2

Thus I have to fight continuously with the indentation and it will 
probably increase the indentation noise in the VCS.

I guess Python is not the most easier language to indent automatically, 
but I would prefer manual indentation than to fight against my editor.

Sincerely yours,

Fabrice





Acknowledgement sent to Fabrice Salvaire <fabrice.salvaire@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#20560; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 18 Sep 2020 11:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.