GNU bug report logs - #32120
26.1; In python.el tab-width should default to 4

Previous Next

Package: emacs;

Reported by: Carlos Pita <carlosjosepita <at> gmail.com>

Date: Tue, 10 Jul 2018 22:06:02 UTC

Severity: wishlist

Tags: notabug

Found in version 26.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 32120 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Carlos Pita <carlosjosepita <at> gmail.com>
Cc: 32120 <at> debbugs.gnu.org, Robert Pluim <rpluim <at> gmail.com>
Subject: Re: bug#32120: 26.1; In python.el tab-width should default to 4
Date: Wed, 11 Jul 2018 13:19:26 -0400
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).




This bug report was last modified 5 years and 255 days ago.

Previous Next


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