From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" 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 15:59:09 +0900 Message-ID: <87wqfkgk02.fsf@uwakimon.sk.tsukuba.ac.jp> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1395644431 16521 80.91.229.3 (24 Mar 2014 07:00:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Mar 2014 07:00:31 +0000 (UTC) Cc: Alan Mackenzie , emacs-devel@gnu.org To: Stefan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 24 08:00:40 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 1WRysA-0003Dx-MC for ged-emacs-devel@m.gmane.org; Mon, 24 Mar 2014 08:00:38 +0100 Original-Received: from localhost ([::1]:34736 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRysA-0003pB-4F for ged-emacs-devel@m.gmane.org; Mon, 24 Mar 2014 03:00:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRyry-0003og-EO for emacs-devel@gnu.org; Mon, 24 Mar 2014 03:00:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WRyrq-0002do-Qh for emacs-devel@gnu.org; Mon, 24 Mar 2014 03:00:26 -0400 Original-Received: from mgmt2.sk.tsukuba.ac.jp ([130.158.97.224]:53543) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRyrq-0002E8-93 for emacs-devel@gnu.org; Mon, 24 Mar 2014 03:00:18 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt2.sk.tsukuba.ac.jp (Postfix) with ESMTP id ACAD6970902; Mon, 24 Mar 2014 15:59:09 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 992091A28DC; Mon, 24 Mar 2014 15:59:09 +0900 (JST) In-Reply-To: X-Mailer: VM undefined under 21.5 (beta34) "kale" 2a0f42961ed4 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 130.158.97.224 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:170901 Archived-At: Stefan writes: > > In text mode, if the buffer contains > > ----------------------------------------- > > foo > > bar > > ----------------------------------------- > > > and point is at the start of the second line, and I type RET, it gives > > > ----------------------------------------- > > foo > > > > bar > > ----------------------------------------- > > > This is clearly wrong. > > I don't see what is "clear" about it being wrong, sorry. > I see you don't like it (and Richard apparently doesn't like it either), > but that's a different problem. It would be nice if you guys would avoid using keystrokes instead of commands in this discussion. I think it's perfectly reasonable to swap the usage of CR and LF from `newline' and `newline-and-indent' to `newline-and-indent' and `newline', respectively. That may disconcert us oldtimers, but I suspect it's what newcomers to Emacs will expect.[1] And it's easy enough to "fix" if you don't like it. But I hope that's not what Alan's talking about, although it's entirely unclear to me if that's what Stefan's talking about. That is, if what Alan means by "type RET" is "type a keystroke bound to `newline'", then my preference accords with his. For my usage that behavior is *clearly* *wrong*, as in text modes when there's leading whitespace on a line, either *I* put it there, or some electrically- crapified command that I just disabled the electricity on did (and it won't happen again, so there's no reason not to fix it by hand this time). Footnotes: [1] I got used to it in Python-mode quite readily, despite continuing to use the traditional bindings for RET and C-j in other modes.