From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r116461: Connect electric-indent-mode up with CC Mode. Bug #15478. Date: Sun, 23 Mar 2014 21:13:50 -0400 Message-ID: References: <20140302115118.GA3768@acm.acm> <20140308225820.GB2726@acm.acm> <20140309123711.GA2615@acm.acm> <20140316223509.GD3854@acm.acm> <20140319224231.GB4783@acm.acm> <20140322131350.GA3163@acm.acm> <532DF059.1000907@porkrind.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1395623647 19098 80.91.229.3 (24 Mar 2014 01:14:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Mar 2014 01:14:07 +0000 (UTC) Cc: Alan Mackenzie , emacs-devel@gnu.org To: David Caldwell Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 24 02:14:16 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 1WRtSt-0007CL-P7 for ged-emacs-devel@m.gmane.org; Mon, 24 Mar 2014 02:14:11 +0100 Original-Received: from localhost ([::1]:34064 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRtSt-0008Dw-AG for ged-emacs-devel@m.gmane.org; Sun, 23 Mar 2014 21:14:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRtSj-00085r-HN for emacs-devel@gnu.org; Sun, 23 Mar 2014 21:14:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WRtSc-0008NH-2s for emacs-devel@gnu.org; Sun, 23 Mar 2014 21:14:01 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:36097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRtSb-0008M2-Tx for emacs-devel@gnu.org; Sun, 23 Mar 2014 21:13:54 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s2O1DpI0017649; Sun, 23 Mar 2014 21:13:51 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id F2AD46017C; Sun, 23 Mar 2014 21:13:50 -0400 (EDT) In-Reply-To: <532DF059.1000907@porkrind.org> (David Caldwell's message of "Sat, 22 Mar 2014 13:19:37 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.2 X-NAI-Spam-Rules: 2 Rules triggered SUBJ_END_HASH_PTRN=0.2, RV4890=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4890> : inlines <634> : streams <1143610> : uri <1708034> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:170889 Archived-At: >> It seems now that your main (only?) objection is having RET do >> reindent-then-newline-and-indent instead of having it only do >> newline-and-indent. If that's the case, then let's focus on this. >> In what scenario is it a problem? > Let me ask this, in what scenario does it actually do anything useful? When you edit a line in such as way that this line's indentation is not correct any more and then you hit RET. E.g. start from foo(); put point right before "f" and type: "end RET". Of course, in a language that uses "begin ... end" or something like that. > All the cases I can think of it's a nop, except when the indent guessing > is flat out wrong, and then it's just annoying (Grrrr, M-_ C-q RET TAB). Yes, electric-indent is a pain when the indent guessing is wrong. But that holds for all electric-indent-chars. Stefan