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: Wed, 02 Mar 2005 21:29:24 -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> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1109817384 3916 80.91.229.2 (3 Mar 2005 02:36:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 Mar 2005 02:36:24 +0000 (UTC) Cc: teirllm@dms.auburn.edu, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 03 03:36:23 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D6gCF-0006lA-Vj for ged-emacs-devel@m.gmane.org; Thu, 03 Mar 2005 03:36:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D6gV8-0001QG-8C for ged-emacs-devel@m.gmane.org; Wed, 02 Mar 2005 21:55:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D6gPg-0007Ie-BO for emacs-devel@gnu.org; Wed, 02 Mar 2005 21:50:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D6gPW-0007DN-S4 for emacs-devel@gnu.org; Wed, 02 Mar 2005 21:49:59 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D6gPT-0007AQ-Q9 for emacs-devel@gnu.org; Wed, 02 Mar 2005 21:49:55 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D6g5d-0004Sd-Ed for emacs-devel@gnu.org; Wed, 02 Mar 2005 21:29:25 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1D6g5c-0001RT-U5; Wed, 02 Mar 2005 21:29:24 -0500 Original-To: "Chong Yidong" In-reply-to: <2750.220.255.172.231.1109734015.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:34119 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34119 As I see it, the rationale for turning on require-final-newline is that a particular type of file should always end in a newline. The user should type RET himself, but in case he forgets to do so, Emacs does it for him. So (newline) should be used. That is true. But those kinds of files are in special formats, not human-language text. What is the motive for setting use-hard-newlines in one of those buffers? The specific problem I am trying to solve is with Longlines mode (which is not part of Emacs.) It is, in principle, impossible for Longlines to distinguish between the soft newline inserted by require-final-newline and the soft newline inserted by filling when performing automatic line wrapping. "Automatic line wrapping" is not a normal Emacs term, and I am not sure what you mean by it. Do you mean Auto Fill mode? If so, longlines can distinguish the two cases because the newline inserted by Auto Fill mode is not at the end of the line. If it means something else, could you please say what?