all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: 18228@debbugs.gnu.org
Subject: bug#18228: 24.4.50; electrict-indent-mode bad indentation in python-mode
Date: Mon, 11 Aug 2014 09:11:03 +0200	[thread overview]
Message-ID: <53E86C87.4080007@easy-emacs.de> (raw)
In-Reply-To: <87egwqgezc.fsf@loki.jorgenschaefer.de>

On 09.08.2014 12:00, Jorgen Schaefer wrote:
> Hi!
> With a freshly compiled Emacs (git ref 3fc84165), I get the following
> behavior. In a Python buffer with electric-indent-mode enabled, enter
> this:
>
>
> def foo():
>      print "Foo"
>
> def bar()
>
>
> Adding a colon (":"") at the end of bar() will then indent the line to
> the same indentation level as the "print" statement.
>
> While this is the default indentation level for RET after the print
> statement, I would expect that the colon will not reindent my current
> line. python-mode can not know which indentation level is correct,

Right.

But what should electric-indent do than? IMO the only reasonable is indenting to outmost permitted.
Which seems the case.

Electric behaviour seems not that useful in Python than with other modes.
AFAICS not a bug.

Best,

Andreas







  reply	other threads:[~2014-08-11  7:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-09 10:00 bug#18228: 24.4.50; electrict-indent-mode bad indentation in python-mode Jorgen Schaefer
2014-08-11  7:11 ` Andreas Röhler [this message]
2014-08-11 14:45   ` Stefan Monnier
2014-08-11 17:18     ` Andreas Röhler
2014-08-12  2:40       ` Stefan Monnier
2014-08-12  7:05         ` Andreas Röhler
2014-08-12 14:04           ` Stefan Monnier
2014-08-27 19:34             ` Matthew Woodcraft
2014-08-28  6:05               ` Andreas Röhler
2014-08-28 19:00                 ` Matthew Woodcraft
2014-09-01 23:11           ` Fabián Ezequiel Gallina
2014-09-01 22:53 ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53E86C87.4080007@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=18228@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.