From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: 15163@debbugs.gnu.org
Subject: bug#15163: 24.3; python-mode, electric colon bug
Date: Fri, 23 Aug 2013 08:35:49 +0200 [thread overview]
Message-ID: <521702C5.4040709@easy-emacs.de> (raw)
In-Reply-To: <52163995.8060709@gmail.com>
Am 22.08.2013 18:17, schrieb Alexis Roda:
> Electric colon don't indent when used in conjunction with
> newline-and-indent in some nested statements.
>
> To reproduce:
>
> emacs -Q /tmp/bugtest.py
>
> and type:
>
> i f SPC a : C-j i f SPC b : C-j p a s s C-j e l s e : C-j p a s s C-j e l s e :
>
> you'll get:
>
> if a:
> if b:
> pass
> else:
> pass
> else:
>
> The last 'else' isn't indented properly.
>
>
IMO 'else' shouldn't be indented at all here, as an "if" can't have two "else"-clauses
May confirm the bug with
GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2013-07-06
Andreas
next prev parent reply other threads:[~2013-08-23 6:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-22 16:17 bug#15163: 24.3; python-mode, electric colon bug Alexis Roda
2013-08-23 6:35 ` Andreas Röhler [this message]
2013-08-23 11:17 ` Alexis Roda
2013-08-27 3:00 ` Stefan Monnier
2014-07-09 3:58 ` Fabián Ezequiel Gallina
2014-07-09 4:01 ` Fabián Ezequiel Gallina
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=521702C5.4040709@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--cc=15163@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).