From: Fabrice Salvaire <fabrice.salvaire@orange.fr>
To: 20560@debbugs.gnu.org
Subject: bug#20560: 24.5; I am not happy with the new Python mode indentation behaviour
Date: Tue, 12 May 2015 12:13:07 +0200 [thread overview]
Message-ID: <5551D233.1090202@orange.fr> (raw)
Dear Emacs devs,
I noticed after an Emacs update the Python mode changed its indentation
behaviour.
I checked my .emacs and .gnu-emacs-custion for settings that could
interfere with the Python mode, but I found anything.
First it imposes a newer indentation style, the closing
brace/bracket/parenthesis on multi-line constructs line up under the
first character of the line that starts the multi-line construct:
my_list = [
____1, 2, 3,
____4, 5, 6,
]
while I have thousands lines of codes typed on Emacs where the closing
character is indented, e.g.:
my_list = [
____1, 2, 3,
____4, 5, 6,
____]
Moreover if you press enter in the following construct at the location
marked by * to add an empty line or to add codes after the if:
if foo:
____a = 1
*a = 2
then the line is automatically indented:
if foo:
____a = 1
____a = 2
Thus I have to fight continuously with the indentation and it will
probably increase the indentation noise in the VCS.
I guess Python is not the most easier language to indent automatically,
but I would prefer manual indentation than to fight against my editor.
Sincerely yours,
Fabrice
next reply other threads:[~2015-05-12 10:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-12 10:13 Fabrice Salvaire [this message]
2015-05-12 16:06 ` bug#20560: 24.5; I am not happy with the new Python mode indentation behaviour Glenn Morris
2019-04-20 20:58 ` Noam Postavsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5551D233.1090202@orange.fr \
--to=fabrice.salvaire@orange.fr \
--cc=20560@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).