GNU bug report logs - #15731
24.3; python indentation error: wrong indentation after inline if-statement

Previous Next

Package: emacs;

Reported by: Luke Zoltan Kelley <lkelley <at> cfa.harvard.edu>

Date: Sun, 27 Oct 2013 06:12:02 UTC

Severity: normal

Found in version 24.3

Done: fgallina <at> gnu.org (Fabián Ezequiel Gallina)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15731 in the body.
You can then email your comments to 15731 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15731; Package emacs. (Sun, 27 Oct 2013 06:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Luke Zoltan Kelley <lkelley <at> cfa.harvard.edu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 27 Oct 2013 06:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Luke Zoltan Kelley <lkelley <at> cfa.harvard.edu>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3;
 python indentation error: wrong indentation after inline if-statement
Date: Sat, 26 Oct 2013 22:23:10 -0400
emacs -Q test.py

cond = True
if( cond ):

    if( cond ): print "True"
else: print "False"

else:
    return

the first 'else' condition will not indent to the proper alignment
(aligned with the second 'if' statement).  Using M-x indent-region has
the same effect.  It's possible this bug does not occur in 24.2.1.


In GNU Emacs 24.3.1 (x86_64-apple-darwin12.2.0)
of 2013-03-13 on teneight-slave.macports.org
Configured using:
`configure '--prefix=/opt/local' '--without-x' '--without-dbus'
'--without-gconf' '--without-libotf' '--without-m17n-flt'
'--without-gpm' '--without-gnutls' '--without-xml2' '--infodir'
'/opt/local/share/info/emacs' 'CC=/usr/bin/clang' 'CFLAGS=-pipe -O2
-arch x86_64' 'LDFLAGS=-L/opt/local/lib -Wl,-no_pie -arch x86_64'
'CPPFLAGS=-I/opt/local/include''

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Python

Minor modes in effect:
  global-rainbow-delimiters-mode: t
  rainbow-delimiters-mode: t
  show-paren-mode: t
  menu-bar-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
  transient-mark-mode: t

Recent input:
ESC [ ? 1 ; 2 c ESC x r e p o r t - e m TAB RET

Recent messages:
("emacs" "CosmoCalc.py")
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading vc-git...done

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message idna format-spec
rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils vc-git python rx easymenu comint ring
ansi-color edmacro kmacro rainbow-delimiters time-date paren gnuplot
regexp-opt lzk-mode derived ediff-hook vc-hooks lisp-float-type
tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow
timer jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer loaddefs button faces cus-face macroexp files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process multi-tty emacs)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15731; Package emacs. (Sun, 27 Oct 2013 08:49:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#15731: 24.3; python indentation error: wrong indentation
 after inline if-statement
Date: Sun, 27 Oct 2013 09:50:25 +0100
Am 27.10.2013 03:23, schrieb Luke Zoltan Kelley:
> emacs -Q test.py
>
> cond = True
> if( cond ):
>
>      if( cond ): print "True"
> else: print "False"
>
> else:
>      return
>
> the first 'else' condition will not indent to the proper alignment
> (aligned with the second 'if' statement).  Using M-x indent-region has
> the same effect.  It's possible this bug does not occur in 24.2.1.
>


May confirm this with

GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2013-10-21






Reply sent to fgallina <at> gnu.org (Fabián Ezequiel Gallina):
You have taken responsibility. (Thu, 12 Dec 2013 23:36:01 GMT) Full text and rfc822 format available.

Notification sent to Luke Zoltan Kelley <lkelley <at> cfa.harvard.edu>:
bug acknowledged by developer. (Thu, 12 Dec 2013 23:36:02 GMT) Full text and rfc822 format available.

Message #13 received at 15731-done <at> debbugs.gnu.org (full text, mbox):

From: fgallina <at> gnu.org (Fabián Ezequiel Gallina)
To: 15731-done <at> debbugs.gnu.org
Date: Thu, 12 Dec 2013 20:34:49 -0300
Fixed in revno 115497.


Thanks,
Fabián.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 10 Jan 2014 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 163 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.