From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sho Takemori Newsgroups: gmane.emacs.bugs Subject: bug#18432: 24.4.50; python-mode, elif line indentation Date: Tue, 09 Sep 2014 20:30:44 +0900 Message-ID: <540EE4E4.2080608@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1410277361 16784 80.91.229.3 (9 Sep 2014 15:42:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Sep 2014 15:42:41 +0000 (UTC) To: 18432@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 09 17:42:35 2014 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 1XRNYs-0001wO-MQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Sep 2014 17:42:30 +0200 Original-Received: from localhost ([::1]:50461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRNYs-0001yx-Bz for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Sep 2014 11:42:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRNYX-0001ZA-IO for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2014 11:42:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRNYR-0006SF-DX for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2014 11:42:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRNYR-0006SB-3h for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2014 11:42:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XRNYQ-0005lt-EL for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2014 11:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sho Takemori Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Sep 2014 15:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18432 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.141027727322099 (code B ref -1); Tue, 09 Sep 2014 15:42:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Sep 2014 15:41:13 +0000 Original-Received: from localhost ([127.0.0.1]:35503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XRNXb-0005kK-LO for submit@debbugs.gnu.org; Tue, 09 Sep 2014 11:41:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37052) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XRJdh-0007ME-Hg for submit@debbugs.gnu.org; Tue, 09 Sep 2014 07:31:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRJdW-0000rv-44 for submit@debbugs.gnu.org; Tue, 09 Sep 2014 07:31:08 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:47844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRJdW-0000rr-0e for submit@debbugs.gnu.org; Tue, 09 Sep 2014 07:31:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRJdP-0001EL-IF for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2014 07:31:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRJdJ-0000pd-Dd for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2014 07:30:55 -0400 Original-Received: from mail-pa0-x22c.google.com ([2607:f8b0:400e:c03::22c]:62895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRJdJ-0000pO-1k for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2014 07:30:49 -0400 Original-Received: by mail-pa0-f44.google.com with SMTP id kx10so5262002pab.3 for ; Tue, 09 Sep 2014 04:30:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=POAuMxtG5cw6O/QKD39HbZMLp2fRCOcmj37h0jGL7A4=; b=IaPsIK29yik4KiuK7lTl+W0fGrPtEamJEKJ1/i6XIIlQEuxM/yC/eVuugO6l9MCdwX gm2BIDt+9AgnO/D5TCrWXN6NHCwTV7zEmikK1pztd3APhr5op8D2tkGJsL2PJDWhQ4CO bQXIBzzhD7gS6dgg9DaZS4d1MQnY+7rYziNdYPZD/8hiDt7WjfBoiH0zt6WlR+Sj9TDn 8T4lPEMt9330QmVIofYw5BehMFu0PdF9SLtmTfyTCbfaeSYjddGG6TvrbXitzqeJPH0i o+D690TShIvLukX7sH6crHq6eQNVRW2xZzeWNhzQkazyuxqb5QCSKFYCpMp8jM7s8bDT 0UGw== X-Received: by 10.68.182.67 with SMTP id ec3mr29413485pbc.74.1410262247564; Tue, 09 Sep 2014 04:30:47 -0700 (PDT) Original-Received: from [192.168.0.104] (p76edb62d.hkidnt01.ap.so-net.ne.jp. [118.237.182.45]) by mx.google.com with ESMTPSA id sl9sm11374513pbc.46.2014.09.09.04.30.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Sep 2014 04:30:47 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Tue, 09 Sep 2014 11:41:09 -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:93196 Archived-At: Dear developers, In a Python buffer, I have the following code. Here _ indicates the position of the cursor. if (a == 1 or a == 2): pass elif (a == 3 or_a == 4): When I press C-m, then this code becomes as follows: if (a == 1 or a == 2): pass elif (a == 3 or a == 4): I expected the following: if (a == 1 or a == 2): pass elif (a == 3 or a == 4): Also I cannot change the indent level at the final line by TAB. This may not be a bug. But the 4th line and 5th line lack the compatibility with the 1st line and the 2nd line. Best Regards, Sho Takemori In GNU Emacs 24.4.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23) of 2014-09-01 on K430-linux Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04.1 LTS Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GCONF GSETTINGS NOTIFY LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB Important settings: value of $LC_MONETARY: ja_JP.UTF-8 value of $LC_NUMERIC: ja_JP.UTF-8 value of $LC_TIME: ja_JP.UTF-8 value of $LANG: ja_JP.UTF-8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix Major mode: Python Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent input: C-x b a a M-x p y t h o n - m o d e i f SPC ( ) a SPC = = SPC 1 SPC o r SPC a SPC = = SPC 2 : C-e p a s s e l i f SPC ( ) a SPC = = SPC 3 SPC o r SPC a SPC = = SPC 4 : TAB TAB TAB M-x r e p o r TAB RET Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Can't guess python-indent-offset, using defaults: 4 Closes if (a == 1 or [5 times] Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired 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 help-fns mail-prsvr mail-utils python easymenu json comint ring cl-loaddefs cl-lib ansi-color time-date japan-util tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse 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 nadvice 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 dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 85419 8164) (symbols 48 18988 0) (miscs 40 42 124) (strings 32 13521 4707) (string-bytes 1 398319) (vectors 16 11417) (vector-slots 8 480329 22421) (floats 8 70 275) (intervals 56 209 6) (buffers 976 12) (heap 1024 35387 982))