From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: require-hard-newlines to use newline Date: Fri, 04 Mar 2005 18:45:49 -0500 Message-ID: References: <1483.220.255.172.231.1109730379.squirrel@www.stupidchicken.com> <200503020302.j2232fR21722@raven.dms.auburn.edu> <2750.220.255.172.231.1109734015.squirrel@www.stupidchicken.com> <1415.220.255.169.59.1109818150.squirrel@www.stupidchicken.com> <1404.220.255.169.59.1109889146.squirrel@www.stupidchicken.com> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1109981307 16065 80.91.229.2 (5 Mar 2005 00:08:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 Mar 2005 00:08:27 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 05 01:08:26 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D7MpN-0001dO-SG for ged-emacs-devel@m.gmane.org; Sat, 05 Mar 2005 01:07:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D7N8d-0004us-Tv for ged-emacs-devel@m.gmane.org; Fri, 04 Mar 2005 19:27:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D7N1L-0008Ou-70 for emacs-devel@gnu.org; Fri, 04 Mar 2005 19:19:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D7N1J-0008Nv-Qa for emacs-devel@gnu.org; Fri, 04 Mar 2005 19:19:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D7N0g-0007MB-TV for emacs-devel@gnu.org; Fri, 04 Mar 2005 19:19:11 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D7MUR-0006gq-La for emacs-devel@gnu.org; Fri, 04 Mar 2005 18:45:51 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1D7MUP-0002Oi-FA; Fri, 04 Mar 2005 18:45:50 -0500 Original-To: "Chong Yidong" In-reply-to: <1404.220.255.169.59.1109889146.squirrel@www.stupidchicken.com> (cyd@stupidchicken.com) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:34193 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34193 First, recall that soft newlines are equivalent to spaces, so fill-paragraph can delete a soft newline or replace it with one or more spaces. Now if you have a paragraph foo foo\n bar bar\n \N foo bar\n ... where \n denotes a soft newline and \N a hard newline, then it is refilled to foo foo\n bar bar\N That seems to be replacing \n with zero spaces, not with one space. Is it correct? Anyway, if it is a fact that both of these newlines are normally hard, then it seems to me that there is no way of telling whether the user wants a hard newline or a soft one when require-final-newline adds a newline. A user might save the file with an unfinished paragraph, then go back to writing more of it. Perhaps use-hard-newlines should inhibit the effect of require-final-newline.