all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jorgen Schaefer <forcer@forcix.cx>
To: 18228@debbugs.gnu.org
Subject: bug#18228: 24.4.50; electrict-indent-mode bad indentation in python-mode
Date: Sat, 09 Aug 2014 12:00:07 +0200	[thread overview]
Message-ID: <87egwqgezc.fsf@loki.jorgenschaefer.de> (raw)

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, so it
should not insist on one.


In GNU Emacs 24.4.50.1 (x86_64-unknown-linux-gnu)
 of 2014-08-09 on loki.jorgenschaefer.de
System Description:	Debian GNU/Linux 7.6 (wheezy)

Configured using:
 `configure --without-x'

Configured features:
SOUND NOTIFY LIBXML2 ZLIB

Important settings:
  value of $LC_ALL: 
  value of $LC_COLLATE: de_DE.UTF-8
  value of $LC_CTYPE: de_DE.UTF-8
  value of $LC_MESSAGES: POSIX
  value of $LC_MONETARY: POSIX
  value of $LC_NUMERIC: POSIX
  value of $LC_TIME: POSIX
  value of $LANG: POSIX
  locale-coding-system: utf-8-unix

Major mode: Python

Minor modes in effect:
  gitty-mode: t
  flx-ido-mode: t
  yas-minor-mode: t
  flymake-mode: t
  eldoc-mode: t
  company-mode: t
  elpy-mode: t
  pyvenv-mode: t
  circe-lagmon-mode: t
  tracking-mode: t
  shell-dirtrack-mode: t
  winner-mode: t
  display-time-mode: t
  global-subword-mode: t
  subword-mode: t
  show-paren-mode: t
  ido-everywhere: t
  electric-pair-mode: t
  delete-selection-mode: t
  cua-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  auto-fill-function: do-auto-fill






             reply	other threads:[~2014-08-09 10:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-09 10:00 Jorgen Schaefer [this message]
2014-08-11  7:11 ` bug#18228: 24.4.50; electrict-indent-mode bad indentation in python-mode Andreas Röhler
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=87egwqgezc.fsf@loki.jorgenschaefer.de \
    --to=forcer@forcix.cx \
    --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.