From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: electric-indent-mode: abolition of `newline' function is not the Right Thing. Date: Wed, 16 Oct 2013 17:12:40 +0000 Message-ID: <20131016171240.GA3125@acm.acm> References: <20131013101325.GA2621@acm.acm> <20131013140931.GC2621@acm.acm> <20131013172841.GA2498@acm.acm> <525D8946.4070406@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1381943698 14045 80.91.229.3 (16 Oct 2013 17:14:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Oct 2013 17:14:58 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 16 19:14:58 2013 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 1VWUgU-0002jl-0M for ged-emacs-devel@m.gmane.org; Wed, 16 Oct 2013 19:14:58 +0200 Original-Received: from localhost ([::1]:48544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWUgT-0000AQ-Hx for ged-emacs-devel@m.gmane.org; Wed, 16 Oct 2013 13:14:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWUgH-0008Lb-PY for emacs-devel@gnu.org; Wed, 16 Oct 2013 13:14:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWUgA-0002xF-G1 for emacs-devel@gnu.org; Wed, 16 Oct 2013 13:14:45 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:27956 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWUgA-0002ui-6z for emacs-devel@gnu.org; Wed, 16 Oct 2013 13:14:38 -0400 Original-Received: (qmail 57042 invoked by uid 3782); 16 Oct 2013 17:14:36 -0000 Original-Received: from acm.muc.de (pD951A2A4.dip0.t-ipconnect.de [217.81.162.164]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 16 Oct 2013 19:14:35 +0200 Original-Received: (qmail 3145 invoked by uid 1000); 16 Oct 2013 17:12:40 -0000 Content-Disposition: inline In-Reply-To: <525D8946.4070406@gmx.at> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 193.149.48.1 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:164238 Archived-At: Hello, Martin. On Tue, Oct 15, 2013 at 08:28:22PM +0200, martin rudalics wrote: > > And people calling `newline' do not simply want a \n. They want > > abbreviations to be processed, they want auto-fill to be run, trailing > > space to be removed from otherwise blank lines, and so on. What they > > _don't_ want is indentation inserted on the new line. > What I want is RET to always indent the new line. And when I'm at the > beginning of a line I want that RET opens a new line here and indents > it. And that's why I'm hopelessly lost when I have to work with emacs > -Q. With respect, that is not the topic of this thread. That topic is that with electric-indent-mode enabled, there is now no command, also no elisp function which has the traditional functionality of `newline'. That is a significant loss to Emacs. The change in the functionality of `newline' will break existing elisp code which calls `newline'. Also, there will be no way for a user to set up traditional Emacs behaviour wrt and C-j. For what you want, `newline-and-indent' exists, as you know. > martin >