From unknown Fri Jun 20 07:12:09 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#15731 <15731@debbugs.gnu.org> To: bug#15731 <15731@debbugs.gnu.org> Subject: Status: 24.3; python indentation error: wrong indentation after inline if-statement Reply-To: bug#15731 <15731@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:12:09 +0000 retitle 15731 24.3; python indentation error: wrong indentation after inlin= e if-statement reassign 15731 emacs submitter 15731 Luke Zoltan Kelley severity 15731 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 27 02:11:44 2013 Received: (at submit) by debbugs.gnu.org; 27 Oct 2013 06:11:44 +0000 Received: from localhost ([127.0.0.1]:47019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VaJZf-0005yR-KJ for submit@debbugs.gnu.org; Sun, 27 Oct 2013 02:11:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33653) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VaG0w-0008UR-2j for submit@debbugs.gnu.org; Sat, 26 Oct 2013 22:23:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VaG0l-0007sT-6l for submit@debbugs.gnu.org; Sat, 26 Oct 2013 22:23:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52563) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaG0l-0007sP-3Z for submit@debbugs.gnu.org; Sat, 26 Oct 2013 22:23:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaG0f-0006EZ-NH for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2013 22:23:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VaG0Y-0007qZ-I8 for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2013 22:23:21 -0400 Received: from mail-qe0-f51.google.com ([209.85.128.51]:44189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaG0Y-0007qV-Dv for bug-gnu-emacs@gnu.org; Sat, 26 Oct 2013 22:23:14 -0400 Received: by mail-qe0-f51.google.com with SMTP id q19so3216299qeb.24 for ; Sat, 26 Oct 2013 19:23:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:content-transfer-encoding:date :subject:to:message-id:mime-version; bh=PvSrUl94ckOjOUm9tXuHHbbbOSDzm3gDs+4slsLjGy0=; b=BgRfCu6nq99B/KcUSR6YB2iANSq18mw+htsNu1UPJVG+EIuwZGJ+57PDV26J90L7bB iuKbCkC8UlpF37ktuu1+7eIJ0qXw+8tRizxwnbrcOGtTRzhZHAkJTIxk7yjhhh14m5rI o62nMlLEs2/sJzYwY55VbZI8mloLCx7DD/oLeIb+I9uKz+0qPyMj5/B5K8Edp04ApeOi 0V8/Hi+sGSXdnD89bP95GVGc2yLIcUmX8v3px9L2p0dI/ooAH3ydDgzEL8czHPRtcYx9 eSgOKr9TMFTZTUK+7yZVPyEJryroqa2WGIieS5kT28/WhAJF7JK8BPl9x70n5i0lUBBx 7AwQ== X-Gm-Message-State: ALoCoQn6Agjl5E2UH1ADCOqxR/K+d9I1kLJFeJcRc9r/lSddrAqWG4hhhhq/tt8qdzZeRmlBxraG X-Received: by 10.229.30.7 with SMTP id s7mr20550597qcc.7.1382840593408; Sat, 26 Oct 2013 19:23:13 -0700 (PDT) Received: from [192.168.3.180] (c-24-63-251-162.hsd1.ma.comcast.net. [24.63.251.162]) by mx.google.com with ESMTPSA id h9sm37181380qaq.9.2013.10.26.19.23.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 26 Oct 2013 19:23:12 -0700 (PDT) From: Luke Zoltan Kelley Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 26 Oct 2013 22:23:10 -0400 Subject: 24.3; python indentation error: wrong indentation after inline if-statement To: bug-gnu-emacs@gnu.org Message-Id: Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) X-Mailer: Apple Mail (2.1510) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 27 Oct 2013 02:11:42 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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) From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 27 04:48:20 2013 Received: (at submit) by debbugs.gnu.org; 27 Oct 2013 08:48:20 +0000 Received: from localhost ([127.0.0.1]:47208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VaM1D-0001L1-Ss for submit@debbugs.gnu.org; Sun, 27 Oct 2013 04:48:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43830) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VaM1B-0001Ko-HR for submit@debbugs.gnu.org; Sun, 27 Oct 2013 04:48:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VaM0y-0005zJ-6y for submit@debbugs.gnu.org; Sun, 27 Oct 2013 04:48:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaM0y-0005zF-4o for submit@debbugs.gnu.org; Sun, 27 Oct 2013 04:48:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaM0r-0006Sm-IF for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2013 04:48:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VaM0k-0005yM-ON for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2013 04:47:57 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:55477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaM0k-0005y8-Er for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2013 04:47:50 -0400 Received: from purzel.sitgens (brln-4d0c0509.pool.mediaWays.net [77.12.5.9]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0Lu2Cs-1ViQzq0jg6-011gv3; Sun, 27 Oct 2013 09:47:48 +0100 Message-ID: <526CD3D1.4030709@easy-emacs.de> Date: Sun, 27 Oct 2013 09:50:25 +0100 From: =?ISO-8859-1?Q?Andreas_R=F6hler?= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: Re: bug#15731: 24.3; python indentation error: wrong indentation after inline if-statement References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:elYJUUloe3FvtYQAY1zFD6IqCQJXIo7Dfw3NfpBIcNL Z2hI6FfZ7dsBFCUlVFdwDflFrFuyGJSpoo/7XotNwxigtd3vTE 0o4JDRakHqm+5MAzQW7wz1Out1nxYHaLWDCXMFLmY3gtrdeNag 6MHaZyh7kVx8ZF1uX/11xcO/w5nQTFVXNy9Jg4+vNFcghfy1zu mZP/lPaSPjbOAuo6EL6e5JoxOvA6vnXseoOLL6OpVQfllYJ/x2 jvaWUoJRhacX5tc6Nyz5fdYZcLSIlH2JS6gBZQozjULy8cQ9f0 93818CuFkeD88SqaOZ1jsCUwgPqNwF7MTCof7gLbG5rqOaTR14 2ewVkunxXRZ52/cdRp20= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 12 18:35:13 2013 Received: (at 15731-done) by debbugs.gnu.org; 12 Dec 2013 23:35:13 +0000 Received: from localhost ([127.0.0.1]:46214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VrFmi-0002Sl-Pa for submit@debbugs.gnu.org; Thu, 12 Dec 2013 18:35:13 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:35137) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VrFmh-0002Se-9j for 15731-done@debbugs.gnu.org; Thu, 12 Dec 2013 18:35:11 -0500 Received: from [181.164.60.202] (port=46334 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1VrFmg-0005Ua-91 for 15731-done@debbugs.gnu.org; Thu, 12 Dec 2013 18:35:10 -0500 User-agent: mu4e 0.9.9.6pre2; emacs 24.3.1 From: fgallina@gnu.org (=?utf-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) To: 15731-done@debbugs.gnu.org Subject: Date: Thu, 12 Dec 2013 20:34:49 -0300 Message-ID: <87txed1w4m.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 15731-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) Fixed in revno 115497. Thanks, Fabián. From unknown Fri Jun 20 07:12:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 10 Jan 2014 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator