GNU bug report logs -
#18228
24.4.50; electrict-indent-mode bad indentation in python-mode
Previous Next
Reported by: Jorgen Schaefer <forcer <at> forcix.cx>
Date: Sat, 9 Aug 2014 10:02:02 UTC
Severity: minor
Found in version 24.3.93
Fixed in version 24.4.50
Done: fgallina <at> gnu.org (Fabián Ezequiel Gallina)
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Mon, 01 Sep 2014 19:53:22 -0300
with message-id <87sikb6jh9.fsf <at> gnu.org>
and subject line 24.4.50; electrict-indent-mode bad indentation in python-mode
has caused the debbugs.gnu.org bug report #18228,
regarding 24.4.50; electrict-indent-mode bad indentation in python-mode
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
18228: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18228
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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
[Message part 3 (message/rfc822, inline)]
Fixed in revno 117470 in the Emacs 24 branch.
Cheers,
Fabián
This bug report was last modified 10 years and 321 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.