From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Valentin Ignatev Newsgroups: gmane.emacs.bugs Subject: bug#34268: Configuration option to fix the issue Date: Mon, 10 Jun 2019 00:24:28 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000999949058aeaac34" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="1978"; mail-complaints-to="usenet@blaine.gmane.org" To: sds@gnu.org, 34268@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 09 23:24:30 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ha5Ij-0000Hw-8m for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Jun 2019 23:24:29 +0200 Original-Received: from localhost ([::1]:38516 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ha5IY-0000Le-Ni for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Jun 2019 17:24:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56167) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ha5IJ-0000LI-6r for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2019 17:24:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ha5II-0003wu-AP for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2019 17:24:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41949) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ha5II-0003wo-7L for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2019 17:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ha5II-00046n-1I for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2019 17:24:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Valentin Ignatev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Jun 2019 21:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34268 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 34268-submit@debbugs.gnu.org id=B34268.156011541415757 (code B ref 34268); Sun, 09 Jun 2019 21:24:01 +0000 Original-Received: (at 34268) by debbugs.gnu.org; 9 Jun 2019 21:23:34 +0000 Original-Received: from localhost ([127.0.0.1]:55492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ha5Hp-000465-Mk for submit@debbugs.gnu.org; Sun, 09 Jun 2019 17:23:33 -0400 Original-Received: from mail-io1-f43.google.com ([209.85.166.43]:36083) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ha5Ho-00045r-6U for 34268@debbugs.gnu.org; Sun, 09 Jun 2019 17:23:32 -0400 Original-Received: by mail-io1-f43.google.com with SMTP id h6so5390815ioh.3 for <34268@debbugs.gnu.org>; Sun, 09 Jun 2019 14:23:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=bD7E246JPlpBgrjgMKXIljKjyrGXBbvwY0BRGHQ61WE=; b=NMdQvklnjc5LXstclS8Jbi+DO+4KTM5EdVXaoP6OsPMUYLpWwb/3sN+dcFxNgFoEvD cSJTVkr8IiLHEFJm04U9DnXd+QLltp7ZZ+5MjSqtMZSG33ved9a/T0HQ8L00IojK/sSz LrKGaQEZrZQOOBDQeWKbijIx//5cSkRO8bebZLjpggpqbtuh97mxbUYQ1mLeAn0+Kwc7 8ilDJzAgDfAo4f9A86LCVQBw9myrOHmMDnGLVwlQpVGnPmhurHHbBIdlpzmLO0kOLcIc YBLfM3jgDJNFMiAWR6470ILmUG/sXLt4OnmkpNIUcbYy1qcikO2zAfIhT5wXbnJ0HBLJ z3UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bD7E246JPlpBgrjgMKXIljKjyrGXBbvwY0BRGHQ61WE=; b=m60KMHnrj1PEADuM9MhaNQThnpkVV1QZr/TYB1S2zaJFVy1MSQ+k8mfvpdW81nWFsW gm8CsFYtcFus4pj1IXw0V5WLEjun8XAPidH+HLNyfWts0Fv9rlTbEllrWO+hOlIvcgv2 0FVga2ZI2cip4mUqeUj9eLjl4p8fNmYZaC/NZto72pfuy7lMhk+GY8zmPTMsxCEHYYQz 7rdpY0n10aT90T+YZ+SdArYiARSNTSad/9vVpvvX5ZA5b9wt4kGgBUXChCyqHmVB/7KZ Ifz9M5/8NbPJS/QhUVzmj6wPopmBU/uLVj8WGALau+ebEfrLFzTiP+a9LAhbjRfPLe0E EKNw== X-Gm-Message-State: APjAAAX+X7RRZoeF6hKzbxRM5ah5w23cmYo0OeUtKpPK+hoGx/wr1+yk XKpCZL5K+a1IYf/xzfjw582MJOaJbyTXO9HWct3G0U92VAI= X-Google-Smtp-Source: APXvYqxrbw7Hb+/4bGX3/wIldKrBWpuZkxATmi99kcc9SGvCECWi+j9cXoEmmrLrZ1peqByiISGtmc9jvNl49rICpx8= X-Received: by 2002:a5d:8f9a:: with SMTP id l26mr10943249iol.22.1560115406279; Sun, 09 Jun 2019 14:23:26 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:160298 Archived-At: --000000000000999949058aeaac34 Content-Type: text/plain; charset="UTF-8" Hey Sam, I've looked in the python.el code and it seems that it reuses python-indent-def-block-scale for calculating an indentation. The default value is 2 which is why inside-parens indent doubles. Setting its value to 1 fixes the issue. I also wonder why authors choose double indent for aligning function arguments. Is this some kind of an oldschool code style? :) --000000000000999949058aeaac34 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey Sam, I've looked in the python.el code and it= seems that it reuses python-indent-def-block-scale for calculating an inde= ntation.

The default value is 2 which is why i= nside-parens indent doubles. Setting its value to 1 fixes the issue.
<= div>
I also wonder why authors choose double indent for align= ing function arguments. Is this some kind of an oldschool code style? :)
--000000000000999949058aeaac34--