bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#34268: 27.0.50; wrong indentation in python mode


From: Lars Ingebrigtsen
Subject: bug#34268: 27.0.50; wrong indentation in python mode
Date: Wed, 22 Sep 2021 23:57:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Valentin Ignatev <valentignatev@gmail.com> writes:

> 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? :) 

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

If I understand correctly (and I may well not -- I don't write much
python), this is just a preference issue, and setting
`python-indent-def-block-scale' to 1 fixes the issue?

If that's what's recommended by the standards, should we flip the
default to 1?

I've added Augusto to the CCs; perhaps he has an opinion here.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]