From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#18228: 24.4.50; electrict-indent-mode bad indentation in python-mode Date: Mon, 11 Aug 2014 09:11:03 +0200 Message-ID: <53E86C87.4080007@easy-emacs.de> References: <87egwqgezc.fsf@loki.jorgenschaefer.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1407741212 11626 80.91.229.3 (11 Aug 2014 07:13:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2014 07:13:32 +0000 (UTC) To: 18228@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 11 09:13:26 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 1XGjnJ-0007L6-Er for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Aug 2014 09:13:25 +0200 Original-Received: from localhost ([::1]:34151 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGjnI-0002xy-Va for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Aug 2014 03:13:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGjn6-0002pf-5r for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2014 03:13:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XGjmw-0004Hj-AE for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2014 03:13:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGjmw-0004Hf-26 for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2014 03:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XGjmv-0000Uj-MK for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2014 03:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Aug 2014 07:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 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.14077411271811 (code B ref -1); Mon, 11 Aug 2014 07:13:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Aug 2014 07:12:07 +0000 Original-Received: from localhost ([127.0.0.1]:38393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XGjm2-0000T8-WA for submit@debbugs.gnu.org; Mon, 11 Aug 2014 03:12:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54775) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XGjm0-0000Sc-52 for submit@debbugs.gnu.org; Mon, 11 Aug 2014 03:12:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XGjll-00044o-1L for submit@debbugs.gnu.org; Mon, 11 Aug 2014 03:11:58 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGjlk-00044j-UG for submit@debbugs.gnu.org; Mon, 11 Aug 2014 03:11:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGjld-0002Cj-2m for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2014 03:11:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XGjlV-00042U-Jf for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2014 03:11:41 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.131]:55256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGjlV-00042O-Am for bug-gnu-emacs@gnu.org; Mon, 11 Aug 2014 03:11:33 -0400 Original-Received: from [192.168.178.32] (brln-4dba2a96.pool.mediaWays.net [77.186.42.150]) by mrelayeu.kundenserver.de (node=mreue004) with ESMTP (Nemesis) id 0MFwx8-1XDy4b2XmY-00ExfA; Mon, 11 Aug 2014 09:11:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Icedove/24.7.0 In-Reply-To: <87egwqgezc.fsf@loki.jorgenschaefer.de> X-Provags-ID: V02:K0:BWIdE+fK5B8yQO5zI0DIVwTlNl2qxNd4pygJBn9AW8d M1rNIzIfHeX7ImESZBn5+mPC7Ew1J37T4gXD7jJn3ySiqrHAvY khgDZkwmg02w4cwA80yd4yVwNFy6oj7A8gTakAIxm0rZKmRgpW G2dasEgW06ceDOP+YOq/FhTLhj0c4fJmON3jz1WjGGD7FlJcnH 8Tpsz31Su3TIUJeklRu5jP7cZQnm3l8iQL6GpXyFui6yTl6zXy 0IWiq0odGiEi2Qf/q59UnqwBb2Nwlr1p9ZhPZPHMTXyDmy9tVO Nv+CBBOrEJzJNai4lGORQVbeC06cV4aRnx50nm4AJx5RkDTSfW uqY3c1XWZ/JBA9tJxO/zIDZNsab9p9ciqbDYjntwe X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] 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:92408 Archived-At: On 09.08.2014 12:00, Jorgen Schaefer wrote: > 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, Right. But what should electric-indent do than? IMO the only reasonable is indenting to outmost permitted. Which seems the case. Electric behaviour seems not that useful in Python than with other modes. AFAICS not a bug. Best, Andreas