From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jorgen Schaefer Newsgroups: gmane.emacs.bugs Subject: bug#18228: 24.4.50; electrict-indent-mode bad indentation in python-mode Date: Sat, 09 Aug 2014 12:00:07 +0200 Message-ID: <87egwqgezc.fsf@loki.jorgenschaefer.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1407578544 18052 80.91.229.3 (9 Aug 2014 10:02:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Aug 2014 10:02:24 +0000 (UTC) To: 18228@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 09 12:02:18 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 1XG3Td-0000nV-Mz for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Aug 2014 12:02:17 +0200 Original-Received: from localhost ([::1]:55124 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XG3Td-0003pf-8a for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Aug 2014 06:02:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XG3TU-0003m5-L4 for bug-gnu-emacs@gnu.org; Sat, 09 Aug 2014 06:02:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XG3TO-00072a-LM for bug-gnu-emacs@gnu.org; Sat, 09 Aug 2014 06:02:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57371) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XG3TO-00072V-Iz for bug-gnu-emacs@gnu.org; Sat, 09 Aug 2014 06:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XG3TO-0001Rq-9T for bug-gnu-emacs@gnu.org; Sat, 09 Aug 2014 06:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jorgen Schaefer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Aug 2014 10:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18228 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.14075784675492 (code B ref -1); Sat, 09 Aug 2014 10:02:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Aug 2014 10:01:07 +0000 Original-Received: from localhost ([127.0.0.1]:36081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XG3SU-0001QV-DN for submit@debbugs.gnu.org; Sat, 09 Aug 2014 06:01:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44250) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XG3SP-0001Ps-Sm for submit@debbugs.gnu.org; Sat, 09 Aug 2014 06:01:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XG3SE-0006UT-K5 for submit@debbugs.gnu.org; Sat, 09 Aug 2014 06:00:56 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40065) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XG3SE-0006UP-GU for submit@debbugs.gnu.org; Sat, 09 Aug 2014 06:00:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XG3S9-0003gr-7u for bug-gnu-emacs@gnu.org; Sat, 09 Aug 2014 06:00:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XG3S3-0006Sl-VZ for bug-gnu-emacs@gnu.org; Sat, 09 Aug 2014 06:00:45 -0400 Original-Received: from loki.jorgenschaefer.de ([87.230.15.51]:43298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XG3S3-0006SV-PM for bug-gnu-emacs@gnu.org; Sat, 09 Aug 2014 06:00:39 -0400 Original-Received: by loki.jorgenschaefer.de (Postfix, from userid 1000) id B0E45201315; Sat, 9 Aug 2014 12:00:07 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:92326 Archived-At: Hi! With a freshly compiled Emacs (git ref 3fc84165), I get the following behavior. In a Python buffer with electric-indent-mode enabled, enter this: def foo(): print "Foo" def bar() Adding a colon (":"") at the end of bar() will then indent the line to the same indentation level as the "print" statement. While this is the default indentation level for RET after the print statement, I would expect that the colon will not reindent my current line. python-mode can not know which indentation level is correct, so it should not insist on one. In GNU Emacs 24.4.50.1 (x86_64-unknown-linux-gnu) of 2014-08-09 on loki.jorgenschaefer.de System Description: Debian GNU/Linux 7.6 (wheezy) Configured using: `configure --without-x' Configured features: SOUND NOTIFY LIBXML2 ZLIB Important settings: value of $LC_ALL: value of $LC_COLLATE: de_DE.UTF-8 value of $LC_CTYPE: de_DE.UTF-8 value of $LC_MESSAGES: POSIX value of $LC_MONETARY: POSIX value of $LC_NUMERIC: POSIX value of $LC_TIME: POSIX value of $LANG: POSIX locale-coding-system: utf-8-unix Major mode: Python Minor modes in effect: gitty-mode: t flx-ido-mode: t yas-minor-mode: t flymake-mode: t eldoc-mode: t company-mode: t elpy-mode: t pyvenv-mode: t circe-lagmon-mode: t tracking-mode: t shell-dirtrack-mode: t winner-mode: t display-time-mode: t global-subword-mode: t subword-mode: t show-paren-mode: t ido-everywhere: t electric-pair-mode: t delete-selection-mode: t cua-mode: t tooltip-mode: t electric-indent-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 auto-fill-function: do-auto-fill