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: electric-indent-mode: abolition of `newline' function is not the Right Thing. Date: Thu, 17 Oct 2013 08:22:07 +0900 Message-ID: <87li1sg5sw.fsf@uwakimon.sk.tsukuba.ac.jp> References: <20131013101325.GA2621@acm.acm> <20131013140931.GC2621@acm.acm> <20131013172841.GA2498@acm.acm> <525D8946.4070406@gmx.at> <20131016171240.GA3125@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1381965749 11308 80.91.229.3 (16 Oct 2013 23:22:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Oct 2013 23:22:29 +0000 (UTC) Cc: Alan Mackenzie , emacs-devel@gnu.org, martin rudalics To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 17 01:22:32 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 1VWaQC-0005et-CS for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2013 01:22:32 +0200 Original-Received: from localhost ([::1]:49691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWaQB-0001xo-U2 for ged-emacs-devel@m.gmane.org; Wed, 16 Oct 2013 19:22:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWaQ1-0001tW-Cf for emacs-devel@gnu.org; Wed, 16 Oct 2013 19:22:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWaPu-0007VI-2g for emacs-devel@gnu.org; Wed, 16 Oct 2013 19:22:21 -0400 Original-Received: from mgmt1.sk.tsukuba.ac.jp ([130.158.97.223]:46692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWaPt-0007Ug-Oi for emacs-devel@gnu.org; Wed, 16 Oct 2013 19:22:14 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt1.sk.tsukuba.ac.jp (Postfix) with ESMTP id 9EE793FA0A1C; Thu, 17 Oct 2013 08:22:07 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 889EE129E2C; Thu, 17 Oct 2013 08:22:07 +0900 (JST) In-Reply-To: X-Mailer: VM undefined under 21.5 (beta34) "kale" 182d01410b8d 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.223 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:164258 Archived-At: Stefan Monnier writes: > > 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'. > > Quick, without looking at the source code of newline: what does > `newline' do that (insert "\n") or C-q C-j doesn't do? `newline' is an interactive built-in compiled Lisp function -- loaded from "/playpen/src/XEmacs/xemacs/lisp/simple.elc" (newline &optional N) Documentation: Insert a newline, and move to left margin of the new line if it's blank. The newline is marked with the text-property `hard'. With optional arg N, insert that many newlines. In Auto Fill mode, if no numeric arg, break the preceding line if it's long. Look ma, no code browsing! (N.B. The Emacs docstring is worded differently but it says the same thing, modulo being more accurate about `use-hard-newlines' and auto-fill-mode.)