From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: require-hard-newlines to use newline Date: Mon, 07 Mar 2005 21:52:45 -0500 Message-ID: References: <1605.220.255.169.59.1110075529.squirrel@www.stupidchicken.com> <87sm373fah.fsf@ID-87814.user.uni-berlin.de> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1110251158 23349 80.91.229.2 (8 Mar 2005 03:05:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 8 Mar 2005 03:05:58 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 08 04:05:58 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D8V2I-0007Ui-OQ for ged-emacs-devel@m.gmane.org; Tue, 08 Mar 2005 04:05:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D8VGg-0000WJ-SD for ged-emacs-devel@m.gmane.org; Mon, 07 Mar 2005 22:20:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D8VEK-0007i8-3e for emacs-devel@gnu.org; Mon, 07 Mar 2005 22:17:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D8VEB-0007bU-LG for emacs-devel@gnu.org; Mon, 07 Mar 2005 22:17:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D8VE7-0007WN-Bb for emacs-devel@gnu.org; Mon, 07 Mar 2005 22:17:43 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D8Uq6-0008Ac-7X for emacs-devel@gnu.org; Mon, 07 Mar 2005 21:52:54 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1D8Upx-0008JK-R1; Mon, 07 Mar 2005 21:52:45 -0500 Original-To: Oliver Scholz In-reply-to: <87sm373fah.fsf@ID-87814.user.uni-berlin.de> (message from Oliver Scholz on Mon, 07 Mar 2005 11:45:42 +0100) 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: news.gmane.org gmane.emacs.devel:34305 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34305 If I understand things correctly, the problem would go away, if require-f-n would just add the newline when writing the file but not to the buffer (a bit similar to a function in `write-region-annotate-functions') . Then the user would only come to see it, if she reverts the buffer; in this case it is longlines.el's job to use its heuristics to detect whether the final newline is hard or soft. That is an interesting suggestion, but I tend to suspect it might also cause problems. People could try it and see.