From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#32120: 26.1; In python.el tab-width should default to 4 Date: Wed, 11 Jul 2018 13:19:26 -0400 Message-ID: <0mo9fdvgf5.fsf@fencepost.gnu.org> References: <87d0vu3fxu.fsf@gmail.com> <87sh4qjevv.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1531329484 15465 195.159.176.226 (11 Jul 2018 17:18:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 11 Jul 2018 17:18:04 +0000 (UTC) User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: 32120@debbugs.gnu.org, Robert Pluim To: Carlos Pita Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 11 19:17:59 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdIkZ-0003vM-9G for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Jul 2018 19:17:59 +0200 Original-Received: from localhost ([::1]:54837 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdImg-00061P-Da for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Jul 2018 13:20:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdImZ-000604-93 for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2018 13:20:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdImY-00015N-9i for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2018 13:20:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47966) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fdImY-000154-6Y for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2018 13:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fdImY-00059w-1j for bug-gnu-emacs@gnu.org; Wed, 11 Jul 2018 13:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Jul 2018 17:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32120 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32120-submit@debbugs.gnu.org id=B32120.153132957819793 (code B ref 32120); Wed, 11 Jul 2018 17:20:01 +0000 Original-Received: (at 32120) by debbugs.gnu.org; 11 Jul 2018 17:19:38 +0000 Original-Received: from localhost ([127.0.0.1]:55863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdImA-00059B-2p for submit@debbugs.gnu.org; Wed, 11 Jul 2018 13:19:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32935) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdIm9-00058z-Cq for 32120@debbugs.gnu.org; Wed, 11 Jul 2018 13:19:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdIm3-0000pJ-Dt for 32120@debbugs.gnu.org; Wed, 11 Jul 2018 13:19:32 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdIm0-0000oC-9D; Wed, 11 Jul 2018 13:19:28 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1fdIly-00075Y-EO; Wed, 11 Jul 2018 13:19:26 -0400 X-Spook: Emergency Broadcast System Ft. Knox Warning Homeland X-Ran: N0r#|i! (Carlos Pita's message of "Wed, 11 Jul 2018 10:50:39 -0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 208.118.235.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:148447 Archived-At: Carlos Pita wrote: > When you do rigid indentation, say C-x Tab and then S-Right, you get > 8-spaces tab steps with that configuration. Right. What is your justification for wanting this to be 4? Python generally discourages tabs, but when they are present, seems to follow the historical convention mapping them to 8 spaces. Eg https://docs.python.org/3/reference/lexical_analysis.html#indentation Tabs are replaced (from left to right) by one to eight spaces such that the total number of characters up to and including the replacement is a multiple of eight (this is intended to be the same rule as used by Unix).