[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#62696: python.el: Extra indentation for conditionals
From: |
kobarity |
Subject: |
bug#62696: python.el: Extra indentation for conditionals |
Date: |
Sun, 16 Apr 2023 22:24:29 +0900 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (Gojō) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
kobarity wrote:
> Gustaf Waldemarson wrote:
> > "Increase indentation inside parens of a block.
> > When this variable is set to non-nil and the contents of a block
> > inside parens are indented to the same level as outside the same
> > block, increase the indentation of the line."
>
> Thank you for your suggestion. I think this is more readable and
> would like to make changes in this direction.
I have concluded that it's better to include an example in the
docstring of `python-indent-block-paren-deeper'. How about the
following? I also attached the updated patch.
"Increase indentation inside parens of a block.
If non-nil, increase the indentation of the lines inside parens
in a header of a block when they are indented to the same level
as the body of the block:
if (some_expression
and another_expression):
do_something()
instead of:
if (some_expression
and another_expression):
do_something()
This variable only works if the opening paren is followed by
non-whitespace characters on the same line. Modify
`python-indent-def-block-scale' to customize the case where
non-whitespace character does not follow the opening paren on the
same line."
Best regards,
kobarity
0001-Add-a-new-user-option-in-Python-mode-to-improve-the-.patch
Description: Binary data
- bug#62696: python.el: Extra indentation for conditionals, Gustaf Waldemarson, 2023/04/06
- bug#62696: python.el: Extra indentation for conditionals, kobarity, 2023/04/09
- bug#62696: python.el: Extra indentation for conditionals, Gustaf Waldemarson, 2023/04/10
- bug#62696: python.el: Extra indentation for conditionals, kobarity, 2023/04/10
- bug#62696: python.el: Extra indentation for conditionals, Gustaf Waldemarson, 2023/04/11
- bug#62696: python.el: Extra indentation for conditionals, kobarity, 2023/04/12
- bug#62696: python.el: Extra indentation for conditionals,
kobarity <=
- bug#62696: python.el: Extra indentation for conditionals, Gustaf Waldemarson, 2023/04/16
- bug#62696: python.el: Extra indentation for conditionals, kobarity, 2023/04/18
- bug#62696: python.el: Extra indentation for conditionals, Eli Zaretskii, 2023/04/20
- bug#62696: python.el: Extra indentation for conditionals, Gustaf Waldemarson, 2023/04/20
- bug#62696: python.el: Extra indentation for conditionals, kobarity, 2023/04/20
- bug#62696: python.el: Extra indentation for conditionals, Gustaf Waldemarson, 2023/04/20
- bug#62696: python.el: Extra indentation for conditionals, Eli Zaretskii, 2023/04/22