From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Carlos Pita Newsgroups: gmane.emacs.bugs Subject: bug#32120: 26.1; In python.el tab-width should default to 4 Date: Sat, 30 Mar 2019 00:25:46 -0300 Message-ID: References: <87d0vu3fxu.fsf@gmail.com> <87sh4qjevv.fsf@gmail.com> <0mo9fdvgf5.fsf@fencepost.gnu.org> <87pnq9830l.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000009a7ea1058547586e" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="2557"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Robert Pluim , 32120@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 30 04:33:19 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hA4kB-0000Z8-H0 for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Mar 2019 04:33:19 +0100 Original-Received: from localhost ([127.0.0.1]:49450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hA4kA-00060j-He for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Mar 2019 23:33:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hA4e7-0003LL-6t for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2019 23:27:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hA4e6-0007Hi-9f for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2019 23:27:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50827) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hA4e6-0007HV-6e for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2019 23:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hA4e5-0007fD-TH for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2019 23:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Mar 2019 03:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32120 X-GNU-PR-Package: emacs Original-Received: via spool by 32120-submit@debbugs.gnu.org id=B32120.155391636729394 (code B ref 32120); Sat, 30 Mar 2019 03:27:01 +0000 Original-Received: (at 32120) by debbugs.gnu.org; 30 Mar 2019 03:26:07 +0000 Original-Received: from localhost ([127.0.0.1]:36138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hA4dC-0007e1-V2 for submit@debbugs.gnu.org; Fri, 29 Mar 2019 23:26:07 -0400 Original-Received: from mail-yw1-f47.google.com ([209.85.161.47]:44570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hA4dB-0007dX-3g for 32120@debbugs.gnu.org; Fri, 29 Mar 2019 23:26:05 -0400 Original-Received: by mail-yw1-f47.google.com with SMTP id c4so1387935ywa.11 for <32120@debbugs.gnu.org>; Fri, 29 Mar 2019 20:26:05 -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=u7tj402fDG33m1y3XO5WulZEo7P/1yKPJDDMVYz8xAI=; b=ibg5iDImO0yfPjQmgt/ydTwP87DjuCunrqe/itCCrdiBFKQDoQe13c766ESjwkUlzB tYXoCxDwuQJUwhpOCA9Jp4vHXMZwTm+ajkTmRBKlOc/kZMdH1sRxq3ArmPuNGCL1HObb QXUs6jZhNfeKVAdrguchsZSuaO3xzgIAyNYO8VQ5LkerlSZQf5pYhWgSKFR/0wFZ71QR 7Sn5F4UnwZvZXor6ZQQSqt5uw4hZXDOkrtYTBjGFqBB28j6Zbew74J8003e7bdhg1TIT Z2QzZEQub9p3veaUNqGPiOmoXwiHGLl+R2wePoYNBX7+buVO+E4PdnC7SjLpX4ypJ+oH kXBg== 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=u7tj402fDG33m1y3XO5WulZEo7P/1yKPJDDMVYz8xAI=; b=hMTfDvZLmF5LHWH0LSQTeT4MdCbAv0W0f4V3QGCQ/Myc+rdXW+dBQFF5BG7eUF76mV wKchBvlcZ1RtqAmZRzbGCNUIlBpOTmH7LB17T2Dr5kfTw/+uF0cHFhqOePPcVJME3Mgl pF54qOwcmnE+fuCmo3YUaAELan2cnkjxfQQnNy8Pnj5m67vmLsvTXQqx/ZEixHnf0emB Bdq7x3x0olm07XEgoY/IieHWDOW0ipe0xgijUQuSVjk9hyqT2XWhP31VWWuyV5ggzCVy CGbgjP9psnxXn439zmV83nmy7v2nZnI0onrZPBT4NJ9svXO3vQsz5Zqc+mnhekCxTx11 /BfQ== X-Gm-Message-State: APjAAAVHR6o33d0js29UYq3mz9kgGISoUKM00QR8ahGiv5y3FaUNjOSU wOozWEFXXSSrNGGcET97YYFcva3pEVrBPT+L0Ag= X-Google-Smtp-Source: APXvYqxNffBP5BucF96QMLwA0eWU2GH8Cog5LS4gOLtcK6e1Uj5ETdiC0h3SSM413i9Kf0MquzHBjwfoRq6zAMcztI4= X-Received: by 2002:a81:6c04:: with SMTP id h4mr42041886ywc.170.1553916359244; Fri, 29 Mar 2019 20:25:59 -0700 (PDT) In-Reply-To: <87pnq9830l.fsf@gmail.com> 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:156931 Archived-At: --0000000000009a7ea1058547586e Content-Type: text/plain; charset="UTF-8" Hi Noam, On Sat, Mar 30, 2019 at 12:17 AM Noam Postavsky wrote: > > Seems clear to me that the proper solution is simply to rebind C-x Tab > S-left/right to use python-indent-shift-left/right. That will solve the > actual problem you experience, without incorrectly showing any existing > tab charaters as 4 spaces. > > I would agree with you if I understood why is it incorrect to show 4 spaces for a tab. OTOH I'm not saying it is correct, just that it would be more consistent with a (suggested by a PEP) 4-space indentation step. --0000000000009a7ea1058547586e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Noam,

On Sat, Mar 30, 2019 at 12:17 AM Noam Pos= tavsky <npostavs@gmail.com>= wrote:

Seems clear to me that the proper solution is simply to rebind C-x Tab
S-left/right to use python-indent-shift-left/right.=C2=A0 That will solve t= he
actual problem you experience, without incorrectly showing any existing
tab charaters as 4 spaces.


=C2=A0I would agree with you if I unde= rstood why is it incorrect to show 4 spaces for a tab. OTOH I'm not say= ing it is correct, just that it would be more consistent with a (suggested = by a PEP) 4-space indentation step.
--0000000000009a7ea1058547586e--