From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luke Zoltan Kelley Newsgroups: gmane.emacs.bugs Subject: bug#15731: 24.3; python indentation error: wrong indentation after inline if-statement Date: Sat, 26 Oct 2013 22:23:10 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1382854332 3828 80.91.229.3 (27 Oct 2013 06:12:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Oct 2013 06:12:12 +0000 (UTC) To: 15731@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 27 07:12:17 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VaJaD-0000Ef-86 for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Oct 2013 07:12:17 +0100 Original-Received: from localhost ([::1]:36802 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaJaC-0000ei-PZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Oct 2013 02:12:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaJa4-0000eA-EF for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2013 02:12:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VaJZy-0002hI-Kv for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2013 02:12:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaJZy-0002hC-IV for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2013 02:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VaJZy-0005z3-59 for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2013 02:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Luke Zoltan Kelley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Oct 2013 06:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15731 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.138285430422972 (code B ref -1); Sun, 27 Oct 2013 06:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Oct 2013 06:11:44 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:79689 Archived-At: 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)