From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r116461: Connect electric-indent-mode up with CC Mode. Bug #15478. Date: Mon, 24 Mar 2014 19:19:02 +0200 Message-ID: <83mwgf1pmh.fsf@gnu.org> References: <20140308225820.GB2726@acm.acm> <20140309123711.GA2615@acm.acm> <20140316223509.GD3854@acm.acm> <20140319224231.GB4783@acm.acm> <20140322131350.GA3163@acm.acm> <20140322231012.GB3562@acm.acm> <87wqfkgk02.fsf@uwakimon.sk.tsukuba.ac.jp> <871txsge04.fsf@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1395681565 20996 80.91.229.3 (24 Mar 2014 17:19:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Mar 2014 17:19:25 +0000 (UTC) Cc: acm@muc.de, stephen@xemacs.org, monnier@IRO.UMontreal.CA, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 24 18:19:31 2014 Return-path: Envelope-to: ged-emacs-devel@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 1WS8X2-0006CC-6g for ged-emacs-devel@m.gmane.org; Mon, 24 Mar 2014 18:19:28 +0100 Original-Received: from localhost ([::1]:37665 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS8X1-00049q-OL for ged-emacs-devel@m.gmane.org; Mon, 24 Mar 2014 13:19:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS8Wu-00049M-Ju for emacs-devel@gnu.org; Mon, 24 Mar 2014 13:19:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WS8Wp-0004LB-Hz for emacs-devel@gnu.org; Mon, 24 Mar 2014 13:19:20 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:36456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS8Wp-0004K2-AT for emacs-devel@gnu.org; Mon, 24 Mar 2014 13:19:15 -0400 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0N2Y00H00AMV3M00@mtaout28.012.net.il> for emacs-devel@gnu.org; Mon, 24 Mar 2014 19:19:01 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N2Y00AVHARON270@mtaout28.012.net.il>; Mon, 24 Mar 2014 19:19:00 +0200 (IST) In-reply-to: <871txsge04.fsf@yandex.ru> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.184 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:170917 Archived-At: > From: Dmitry Gutov > Date: Mon, 24 Mar 2014 11:08:43 +0200 > Cc: Alan Mackenzie , Stefan , > emacs-devel@gnu.org > > FWIW, effectively doing `reindent-then-newline-and-indent' on RET also > seems gratuitous to me. When I reach the end of a line, usually text on > that line is already indented correctly (automatically, or through me > typing TAB manually), so the first `reindent' does nothing, unless the > indentation function was wrong about the current line in the first > place, and I had to adjust it manually. This might be mostly true, but not always. E.g., what if you delete a character whose electricity caused the line to be indented in some special way, when that character was inserted earlier? After deleting that character, the line might no longer be indented correctly.