all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#15731: 24.3; python indentation error: wrong indentation after inline if-statement
@ 2013-10-27  2:23 Luke Zoltan Kelley
  2013-10-27  8:50 ` Andreas Röhler
  2013-12-12 23:34 ` bug#15731: Fabián Ezequiel Gallina
  0 siblings, 2 replies; 3+ messages in thread
From: Luke Zoltan Kelley @ 2013-10-27  2:23 UTC (permalink / raw)
  To: 15731

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)





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#15731: 24.3; python indentation error: wrong indentation after inline if-statement
  2013-10-27  2:23 bug#15731: 24.3; python indentation error: wrong indentation after inline if-statement Luke Zoltan Kelley
@ 2013-10-27  8:50 ` Andreas Röhler
  2013-12-12 23:34 ` bug#15731: Fabián Ezequiel Gallina
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Röhler @ 2013-10-27  8:50 UTC (permalink / raw)
  To: 15731

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







^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#15731:
  2013-10-27  2:23 bug#15731: 24.3; python indentation error: wrong indentation after inline if-statement Luke Zoltan Kelley
  2013-10-27  8:50 ` Andreas Röhler
@ 2013-12-12 23:34 ` Fabián Ezequiel Gallina
  1 sibling, 0 replies; 3+ messages in thread
From: Fabián Ezequiel Gallina @ 2013-12-12 23:34 UTC (permalink / raw)
  To: 15731-done

Fixed in revno 115497.


Thanks,
Fabián.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-12 23:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-27  2:23 bug#15731: 24.3; python indentation error: wrong indentation after inline if-statement Luke Zoltan Kelley
2013-10-27  8:50 ` Andreas Röhler
2013-12-12 23:34 ` bug#15731: Fabián Ezequiel Gallina

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.