From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 29 12:13:47 2018 Received: (at submit) by debbugs.gnu.org; 29 Sep 2018 16:13:47 +0000 Received: from localhost ([127.0.0.1]:59103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6HsJ-0002i6-5P for submit@debbugs.gnu.org; Sat, 29 Sep 2018 12:13:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36971) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6HsI-0002hs-0R for submit@debbugs.gnu.org; Sat, 29 Sep 2018 12:13:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6HsB-00071D-PS for submit@debbugs.gnu.org; Sat, 29 Sep 2018 12:13:40 -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.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51175) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g6HsB-000719-Ki for submit@debbugs.gnu.org; Sat, 29 Sep 2018 12:13:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6HsA-0002da-QC for bug-gnu-emacs@gnu.org; Sat, 29 Sep 2018 12:13:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6Hs7-0006yn-Lj for bug-gnu-emacs@gnu.org; Sat, 29 Sep 2018 12:13:38 -0400 Received: from numerus.lingfil.uu.se ([130.238.78.148]:45624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6Hs7-0006wy-DK for bug-gnu-emacs@gnu.org; Sat, 29 Sep 2018 12:13:35 -0400 Received: from localhost (localhost [127.0.0.1]) by numerus.lingfil.uu.se (Postfix) with ESMTP id A9273A19E427; Sat, 29 Sep 2018 18:13:31 +0200 (CEST) X-Virus-Scanned: amavisd-new at lingfil.uu.se Received: from numerus.lingfil.uu.se ([127.0.0.1]) by localhost (numerus.lingfil.uu.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0bFLJOlxm7GP; Sat, 29 Sep 2018 18:13:30 +0200 (CEST) Received: from numerus.lingfil.uu.se (localhost [127.0.0.1]) by numerus.lingfil.uu.se (Postfix) with ESMTP id E2259A19E426; Sat, 29 Sep 2018 18:13:30 +0200 (CEST) Received: (from starback@localhost) by numerus.lingfil.uu.se (8.14.7/8.14.7/Submit) id w8TGDU3v027767; Sat, 29 Sep 2018 18:13:30 +0200 From: starback@stp.lingfil.uu.se (Per =?iso-8859-1?Q?Starb=E4ck?=) To: bug-gnu-emacs@gnu.org Subject: 26.1; python-mode mixes existing tabs with new spaces Date: Sat, 29 Sep 2018 18:13:30 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.26) ### Problem ### I did "emacs -Q pytab.py" where pytab.py contains the two lines: ------------------------------ def foo(): print('hello') ------------------------------ The second line begins with a TAB. Then I add a line to this marvellous program with M-> TAB print('world') C-x C-s This new line will have eight spaces in the beginning, and because of that this is no longer a valid Python3 program! ### Background ### Earlier you could mix spaces and tabs (seen as 8 spaces) in Python, but Python3 disallows mixing them. Spaces are preferred, and the style guide "PEP 8" says that Tabs should be used solely to remain consistent with code that is already indented with tabs. So python-mode ought to help you remain consistent with such old code. I think that checking with what characters the current block is indented all the time would be overdoing it for something that shouldn't occur that often, but that it should suffice to just scan through the visited file to see if it contains any tabs in that case instead turn on indent-tabs-mode instead of turning it off. From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 29 16:06:47 2018 Received: (at submit) by debbugs.gnu.org; 29 Sep 2018 20:06:47 +0000 Received: from localhost ([127.0.0.1]:59194 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6LVm-0008Jd-Ot for submit@debbugs.gnu.org; Sat, 29 Sep 2018 16:06:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g6LVl-0008JQ-1E for submit@debbugs.gnu.org; Sat, 29 Sep 2018 16:06:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6LVf-0007Hj-9B for submit@debbugs.gnu.org; Sat, 29 Sep 2018 16:06:39 -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.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57372) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g6LVf-0007Hb-5l for submit@debbugs.gnu.org; Sat, 29 Sep 2018 16:06:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6LVe-0003q3-By for bug-gnu-emacs@gnu.org; Sat, 29 Sep 2018 16:06:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6LVb-0007Fx-7e for bug-gnu-emacs@gnu.org; Sat, 29 Sep 2018 16:06:38 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:36651) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g6LVa-0007Ey-Up for bug-gnu-emacs@gnu.org; Sat, 29 Sep 2018 16:06:35 -0400 Received: from [192.168.178.35] ([188.103.26.138]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MDyoW-1fwU9c3CT6-009vqi for ; Sat, 29 Sep 2018 22:06:33 +0200 Received: from [192.168.178.35] ([188.103.26.138]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MDyoW-1fwU9c3CT6-009vqi for ; Sat, 29 Sep 2018 22:06:33 +0200 Subject: Re: bug#32876: 26.1; python-mode mixes existing tabs with new spaces To: bug-gnu-emacs@gnu.org References: From: =?UTF-8?Q?Andreas_R=c3=b6hler?= Message-ID: Date: Sat, 29 Sep 2018 22:11:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:haKK0d/uZ+HybFvMi5S3QwU8Y2XJWNOp1zuE22s6NWYPMWIe0QC LcwjYxYR1e/15gWSeKn05kDeOSS8+bTgaUeWl4nCGEbdzpFtkcuiD0Id8euHopI5VXF4Wy9 fpBS5BIwpxZMPg+nFLVevWdbuludV0uniSITT/Zlb8xKWFhvnEsmjCyA4mrywzXf1MjGKTH mbKt/1Aallq55mN1VWqNg== X-UI-Out-Filterresults: notjunk:1;V01:K0:ezZpmKumUxk=:m+CAUWgRLkfoY9hJIzE1mc sbDbj6We32qaU9liQolfDYZWuIewOmA6b+t7pICH9Qu22vB3MTEKw6t12NnUGdSfKIkHZU5M2 X0/SDBQalk5yPox7qm6AUrlWAHibRDHK6dG0puk0YWzpVmmxHc4X7YmwRO7+HmecAVCRdln0E JgoimTnI9VqE6CUD7y9ADGehNAghE+mYIuZIjZlxcHmIsl/psGbnAUhBMP/47e8L5itP7etCV eMb+3yGsOvTyhJj2vo0OY9tnFXYaEDMa9alRi/5YotMGYsXvPsxs70MntguRiUPz0RMGs2VgA AR1H23sIcs/AmUqadoizJm9VkpUo6Uxf4e/2+xlOvyMwErlLDOZP8bw/7A5UrfGxcAft+Dspj ROSDa6r1eN5J+NIhlJTcQc6WKT9I6wcStEzDtL35hn1omZtsiqQie2XiFm6QdIIepboXyd3rR AcEv5+X6Xb4A0QRXfohaXjvpXxvOkdjESL8dx/budD8nXlppG6nz6IwfqDLAHlNi9nkaOB4r7 5mv9dpnre1B8jFWJSO3vb68mXIpeUiV9tLqNrqIGyh1LMDDX/MUs45NSRdxOiZph7Ts6cjGKi dL19Z5qfA1zPQUWH8ZjXu+cpu8hHadsuPDDHQRpXrk6DBnmBE++lG4ItwxHodl4RNS8NClQl3 5P/knO0OEi0Na6Mr9/xxulwHI4cjiMvt8zJ1ZYSc6btf5TB+MGG3pJXr2JXyjQDlew+msSMOu UXvPYz8CdIIKkHif X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) On 29.09.2018 18:13, Per Starbäck wrote: > In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.26) > > ### Problem ### > > I did "emacs -Q pytab.py" where pytab.py contains the two lines: > > ------------------------------ > def foo(): > print('hello') > ------------------------------ > > The second line begins with a TAB. > > Then I add a line to this marvellous program with > > M-> TAB print('world') C-x C-s > > This new line will have eight spaces in the beginning, and because of > that this is no longer a valid Python3 program! > > ### Background ### > > Earlier you could mix spaces and tabs (seen as 8 spaces) in Python, but > Python3 disallows mixing them. > > Spaces are preferred, and the style guide "PEP 8" says that > > Tabs should be used solely to remain consistent with code that is > already indented with tabs. > > So python-mode ought to help you remain consistent with such old > code. I think that checking with what characters the current block is > indented all the time would be overdoing it for something that shouldn't > occur that often, but that it should suffice to just scan through the > visited file to see if it contains any tabs in that case instead turn on > indent-tabs-mode instead of turning it off. > > > May confirm that with GNU Emacs 27.0.50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2018-09-19 python.el hard-codes (set (make-local-variable 'indent-tabs-mode) nil) which should be customizable. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 20:51:37 2018 Received: (at control) by debbugs.gnu.org; 25 Oct 2018 00:51:37 +0000 Received: from localhost ([127.0.0.1]:41051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFTs9-0003HB-8O for submit@debbugs.gnu.org; Wed, 24 Oct 2018 20:51:37 -0400 Received: from mail-it1-f175.google.com ([209.85.166.175]:35089) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFTs7-0003Gs-3L for control@debbugs.gnu.org; Wed, 24 Oct 2018 20:51:35 -0400 Received: by mail-it1-f175.google.com with SMTP id p64-v6so9027107itp.0 for ; Wed, 24 Oct 2018 17:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=/LrnsNFLvYszFEIhQ1ME2PMTnbHszQcTg1zCpnOTmDQ=; b=anbhMtz1eMJMN+pxeImqgkS2N/dTovvybdRasQFu8Dxp2DLt87Oyhy01DUyOnm1jby YDvNKbZ+zTDxLWDDzAoxC1FGwWVgpGkOH+KBq2uSKTtyI+wnRPY8elsof+6QpFMekUp+ dyMOfhHy65DldOFQsJO/9YnvU2zPrmB210+xUs+QMTWl7Jhitc2HnQIswyamNMuhVdla mqVCsM+HfGf2bBHx6A/1BHipc0M2rSQfM08oeCbOGb36AO/i6BL017D30zuH1Qs8/H+J GUEksrMJEemR4lcOB5G3BE0SBeO/JMU4oLy7CAIbe/Xz9PwF1oRLEM9TPskO2v3eu9I/ +bGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=/LrnsNFLvYszFEIhQ1ME2PMTnbHszQcTg1zCpnOTmDQ=; b=aq9jywYG6xolQWyCThFEicgTZ0Asf6XLVwEV8tQGO8EPh6+XQxBgmxPC3OQU4KJxp3 Vivelmj2g3l6ahuysJkJ8Bi9JBL62u3d6H8oOyQ93qfsNU++MSWAV31GbeDQHuNff7Yt HS3xpo9l2yY92ZrkPZucd3PH3fu6m3X1MBBZLQKCDHn3eDN9myqBESGpPoNOX49ORsds coBg0BKE7wNSEJtN+1UnPSP7K3EeGWUMzyLntrvX5wKjoq5Rw42z2WDInd0q44q39XAK 83Uy5NT212AU9CR6qXBGMN17v5CaaGN3ZnRCipYP69Q9vQGAMlOwzYPC6bDQEYYbS9kw 1iXQ== X-Gm-Message-State: AGRZ1gLMlJbm5p189l5SzmohQY5/zaL1J2ztbOQJsD0lD7ycXeSLV0I4 Ccyy7e5dqfVf1uQvrCijGKQxwGr9 X-Google-Smtp-Source: AJdET5c2SqCIsrQWyyyUwbNNPXPHOeh0I9VjrqoyTaKBg8+VZ+2Cs3fMyeeklcubNFxEzudfa06Dag== X-Received: by 2002:a02:c18:: with SMTP id g24-v6mr3671038jad.131.1540428689500; Wed, 24 Oct 2018 17:51:29 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id x184-v6sm2985432itb.9.2018.10.24.17.51.28 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Oct 2018 17:51:29 -0700 (PDT) From: Noam Postavsky To: control@debbugs.gnu.org Subject: control message for bug #32876 Date: Wed, 24 Oct 2018 20:51:28 -0400 Message-ID: <87y3amlugf.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 32876 + confirmed quit From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 23 10:38:57 2021 Received: (at 32876) by debbugs.gnu.org; 23 Jun 2021 14:38:57 +0000 Received: from localhost ([127.0.0.1]:41653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lw41p-00020s-6W for submit@debbugs.gnu.org; Wed, 23 Jun 2021 10:38:57 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lw41n-00020c-C4 for 32876@debbugs.gnu.org; Wed, 23 Jun 2021 10:38:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=FLxlBP6dsR+lfzz8dT8iZ8/0WdsLlNV1oPq4cCkGZWE=; b=NUnTHWbK9jSXX6Rx/ts6fKaYvQ 1BRSrTEMm2ixSOuF7XOArQWyDdpnJM2/XBJu6Ug7cIg070SyThG+5zIOUwOlMrYlpQG+6j8v0nn9y 41wwRnYHs24Rj4+sTUgyC+kxIvAKtnk1uoelFWUrKO5iJ7LdmGLmOTa3T/8fnuEylQ60=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lw41e-0005z6-Eb; Wed, 23 Jun 2021 16:38:49 +0200 From: Lars Ingebrigtsen To: starback@stp.lingfil.uu.se (Per =?utf-8?Q?Starb=C3=A4ck?=) Subject: Re: bug#32876: 26.1; python-mode mixes existing tabs with new spaces References: X-Now-Playing: The Clash's _Sandinista!_: "Junkie Slip" Date: Wed, 23 Jun 2021 16:38:45 +0200 In-Reply-To: ("Per =?utf-8?Q?Starb?= =?utf-8?Q?=C3=A4ck=22's?= message of "Sat, 29 Sep 2018 18:13:30 +0200") Message-ID: <87v964k5my.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: starback@stp.lingfil.uu.se (Per Starbäck) writes: > I did "emacs -Q pytab.py" where pytab.py contains the two lines: > > > def foo(): > print('hello') > > > The second line begins with a T [...] 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: -2.3 (--) X-Debbugs-Envelope-To: 32876 Cc: 32876@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) starback@stp.lingfil.uu.se (Per Starb=C3=A4ck) writes: > I did "emacs -Q pytab.py" where pytab.py contains the two lines: > > ------------------------------ > def foo(): > print('hello') > ------------------------------ > > The second line begins with a TAB. > > Then I add a line to this marvellous program with > > M-> TAB print('world') C-x C-s > > This new line will have eight spaces in the beginning, and because of > that this is no longer a valid Python3 program! > > ### Background ### > > Earlier you could mix spaces and tabs (seen as 8 spaces) in Python, but > Python3 disallows mixing them. Andreas R=C3=B6hler writes: > python.el hard-codes > > (set (make-local-variable 'indent-tabs-mode) nil) > > which should be customizable. Well, I don't know -- the problem is that mixing them leads to invalid programs, so specifying a single tab mode here makes sense, since it will presumably lead to fewer problems in the long run. That is, python-mode doesn't really support .py files with tabs in them -- as a design decision. So I think this works as designed. Anybody else have an opinion here? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat May 07 08:00:18 2022 Received: (at 32876) by debbugs.gnu.org; 7 May 2022 12:00:18 +0000 Received: from localhost ([127.0.0.1]:50691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnJ6g-0001Ck-8B for submit@debbugs.gnu.org; Sat, 07 May 2022 08:00:18 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnJ6e-00015I-9I for 32876@debbugs.gnu.org; Sat, 07 May 2022 08:00:16 -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=ZqcJgD7LhvsCPhPgBohfe2+jK3ZFxxWc8SlzoKUJn94=; b=Q3GUXGfjyOow+vFPq3LxPT1LZV jt5H3lpMCHFvag8i4bwxaXmzJ/McsttgQwIWbNLENz3YCqHkmzfCvOlcShaDu6PsyBdUgGDN47zs8 r4Qus9p9Y/W2uGGID09u20tXCG5Wlfe4uGHaB2xVJ4FRWbu6aW278bJzS9HdBAJnQYKI=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nnJ6W-0002Pk-Bg; Sat, 07 May 2022 14:00:10 +0200 From: Lars Ingebrigtsen To: starback@stp.lingfil.uu.se (Per =?utf-8?Q?Starb=C3=A4ck?=) Subject: Re: bug#32876: 26.1; python-mode mixes existing tabs with new spaces References: <87v964k5my.fsf@gnus.org> X-Now-Playing: Neil Young with Crazy Horse's _Archives Vol. II (10): Odeon Budokan (1976)_: "Drive Back" Date: Sat, 07 May 2022 14:00:07 +0200 In-Reply-To: <87v964k5my.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 23 Jun 2021 16:38:45 +0200") Message-ID: <87bkw9r1rs.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.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: Lars Ingebrigtsen writes: > Well, I don't know -- the problem is that mixing them leads to invalid > programs, so specifying a single tab mode here makes sense, since it > will presumably lead to fewer problems in the long run [...] 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: -2.3 (--) X-Debbugs-Envelope-To: 32876 Cc: 32876@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > Well, I don't know -- the problem is that mixing them leads to invalid > programs, so specifying a single tab mode here makes sense, since it > will presumably lead to fewer problems in the long run. > > That is, python-mode doesn't really support .py files with tabs in > them -- as a design decision. So I think this works as designed. > > Anybody else have an opinion here? Nobody had in half a year, so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat May 07 08:00:23 2022 Received: (at control) by debbugs.gnu.org; 7 May 2022 12:00:24 +0000 Received: from localhost ([127.0.0.1]:50694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnJ6l-0001Je-Jx for submit@debbugs.gnu.org; Sat, 07 May 2022 08:00:23 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnJ6k-0001BC-2v for control@debbugs.gnu.org; Sat, 07 May 2022 08:00:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=eS58w85y/mlbaXagx7adcmubz5Dz4x3kqDf6bWFP0Zw=; b=DBmFM/TS/ryrTQqLO3SHSKtnc6 /o1Cb94PuewB5MnJhss8T4aFxszgtGhGFAWnEseX/X9+u9KmggTIntpOZygFtIxERErPLvhb0LzdQ 2cykidKbIBkm1qNYuPevmbL8KYHzyp9KX1JQh0ToIvyWj0PQZqP9zDqKM9I463I9EozA=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nnJ6c-0002Pz-Cx for control@debbugs.gnu.org; Sat, 07 May 2022 14:00:16 +0200 Date: Sat, 07 May 2022 14:00:13 +0200 Message-Id: <87a6btr1rm.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #32876 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: tags 32876 wontfix close 32876 quit 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: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 32876 wontfix close 32876 quit From unknown Tue Aug 19 14:46:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 05 Jun 2022 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator