From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17449: 24.4.50; Empty lines confuse electric-indent-post-self-insert-function. Date: Fri, 09 May 2014 19:09:42 +0300 Message-ID: <83siojue61.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1399651937 16852 80.91.229.3 (9 May 2014 16:12:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 May 2014 16:12:17 +0000 (UTC) Cc: 17449@debbugs.gnu.org To: Philipp Rumpf Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 09 18:12:10 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 1WinP5-00030p-Jy for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 May 2014 18:12:07 +0200 Original-Received: from localhost ([::1]:53463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WinP5-0006Ed-5t for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 May 2014 12:12:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WinNC-0003ls-Ut for bug-gnu-emacs@gnu.org; Fri, 09 May 2014 12:10:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WinN5-0003Un-G5 for bug-gnu-emacs@gnu.org; Fri, 09 May 2014 12:10:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WinN5-0003UF-Dp for bug-gnu-emacs@gnu.org; Fri, 09 May 2014 12:10:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WinN4-0004v1-Aw for bug-gnu-emacs@gnu.org; Fri, 09 May 2014 12:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 May 2014 16:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17449 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17449-submit@debbugs.gnu.org id=B17449.139965177818867 (code B ref 17449); Fri, 09 May 2014 16:10:02 +0000 Original-Received: (at 17449) by debbugs.gnu.org; 9 May 2014 16:09:38 +0000 Original-Received: from localhost ([127.0.0.1]:57179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WinMf-0004uC-BY for submit@debbugs.gnu.org; Fri, 09 May 2014 12:09:37 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:38660) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WinMc-0004tq-Rp for 17449@debbugs.gnu.org; Fri, 09 May 2014 12:09:36 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0N5B00I00DVQVJ00@mtaout29.012.net.il> for 17449@debbugs.gnu.org; Fri, 09 May 2014 19:10:31 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N5B00IVRE9IQH10@mtaout29.012.net.il>; Fri, 09 May 2014 19:10:31 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il 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:88831 Archived-At: > Date: Fri, 9 May 2014 10:09:03 +0000 > From: Philipp Rumpf > > In C mode and Python mode, hitting on an indented but otherwise > empty line results in an unindented new line at point, rather than an > indented line. > > To reproduce in emacs -Q: > > M-x python-mode > if a == 3: > > M-: (current-column) > > Expected result: 4 / indented line > Actual result: 0 / line not indented Per the design. "C-h k RET" displays this text: RET (translated from ) runs the command newline, which is an interactive compiled Lisp function in `simple.el'. It is bound to RET. (newline &optional ARG INTERACTIVE) Insert a newline, and move to left margin of the new line if it's blank. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^