From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup 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 18:29:53 +0100 Organization: Organization?!? Message-ID: <87siq7wlm6.fsf@fencepost.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> <83mwgf1pmh.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1395682238 23368 80.91.229.3 (24 Mar 2014 17:30:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Mar 2014 17:30:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 24 18:30:47 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 1WS8hu-0002jh-CG for ged-emacs-devel@m.gmane.org; Mon, 24 Mar 2014 18:30:42 +0100 Original-Received: from localhost ([::1]:37709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS8ht-0004l5-Km for ged-emacs-devel@m.gmane.org; Mon, 24 Mar 2014 13:30:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS8hg-0004hk-QT for emacs-devel@gnu.org; Mon, 24 Mar 2014 13:30:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WS8hQ-0007zS-6j for emacs-devel@gnu.org; Mon, 24 Mar 2014 13:30:27 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:37883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS8hP-0007zK-Uo for emacs-devel@gnu.org; Mon, 24 Mar 2014 13:30:12 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WS8hO-00026a-2p for emacs-devel@gnu.org; Mon, 24 Mar 2014 18:30:10 +0100 Original-Received: from x2f49260.dyn.telefonica.de ([2.244.146.96]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Mar 2014 18:30:10 +0100 Original-Received: from dak by x2f49260.dyn.telefonica.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Mar 2014 18:30:10 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 56 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: x2f49260.dyn.telefonica.de X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:fKFbornxc1lkCtC6FC0uTTARsDo= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:170918 Archived-At: Eli Zaretskii writes: >> 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? I _expect_ to have to type TAB when deleting electric characters. > After deleting that character, the line might no longer be indented > correctly. Really, the only actually valid argument so far is Stefan's of typing end M-x newline-and-indent RET when in pascal and on a := 7.0 ^ since it is end a:= 7.0 but end a := 7.0 except, of course, that it is actually end; a := 7.0 after all even in Pascal. And pressing TAB on end;a := 7.0 still will do the right thing. So I don't really think the "inserting newline will actually cause a different indentation for the line above" case is relevant enough to fall over backwards for it. -- David Kastrup