From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Chong Yidong" Newsgroups: gmane.emacs.devel Subject: Re: require-hard-newlines to use newline Date: Thu, 3 Mar 2005 19:56:22 -0500 (EST) Message-ID: <50554.203.116.59.23.1109897782.squirrel@www.stupidchicken.com> 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> <200503040033.j240XD022473@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1109897980 12587 80.91.229.2 (4 Mar 2005 00:59:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 4 Mar 2005 00:59:40 +0000 (UTC) Cc: cyd@stupidchicken.com, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 04 01:59:40 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D71AD-00005J-RP for ged-emacs-devel@m.gmane.org; Fri, 04 Mar 2005 01:59:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D71TH-0006KB-Ng for ged-emacs-devel@m.gmane.org; Thu, 03 Mar 2005 20:19:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D71Sm-0006Gx-E8 for emacs-devel@gnu.org; Thu, 03 Mar 2005 20:18:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D71Sg-0006DC-0h for emacs-devel@gnu.org; Thu, 03 Mar 2005 20:18:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D71Sf-0006BN-Ge for emacs-devel@gnu.org; Thu, 03 Mar 2005 20:18:37 -0500 Original-Received: from [64.21.80.18] (helo=shark.dnsvelocity.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D717O-00030A-BL; Thu, 03 Mar 2005 19:56:38 -0500 Original-Received: from stupidch by shark.dnsvelocity.com with local (Exim 4.44) id 1D7178-00060N-9S; Thu, 03 Mar 2005 19:56:22 -0500 Original-Received: from 203.116.59.23 ([203.116.59.23]) (SquirrelMail authenticated user cyd@stupidchicken.com) by www.stupidchicken.com with HTTP; Thu, 3 Mar 2005 19:56:22 -0500 (EST) In-Reply-To: <200503040033.j240XD022473@raven.dms.auburn.edu> Original-To: "Luc Teirlinck" User-Agent: SquirrelMail/1.4.4 X-Priority: 3 (Normal) Importance: Normal X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - shark.dnsvelocity.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [32675 33085] / [47 12] X-AntiAbuse: Sender Address Domain - stupidchicken.com X-Source: /usr/local/cpanel/3rdparty/bin/php X-Source-Args: /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/base/3rdparty/squirrelmail/src/compose.php X-Source-Dir: :/base/3rdparty/squirrelmail/src 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:34159 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34159 > C-x C-s inserts a newline at the end of the file, but in the buffer that > newline is just a nuisance. If you call end-of-buffer you go past the > newline and you have to be careful to do C-b, or you are editing at the > wrong place... Because the newline is soft, if you are careless and start > typing at the wrong place, you can trivially correct the situation with > M-q. Typing C-b is no more difficult than typing M-q. > Longlines tries to make it convenient on you by translating the > newline back into a space. Now you can just do end-of-buffer and > immediately continue typing, without having to worry about remembering > to type C-b... > You could ask the Longlines maintainer to put a function > in after-save-hook that transforms the soft newline into a space, > without marking the buffer modified. I *am* the Longlines maintainer. The solution you suggested is no good, because if you edit somewhere else in the document (not at the end of the buffer) and save, you will end up with another newline, which gets converted into another space. Yes, I can cook up a kludge to work around require-hard-newline if it continues to use a soft final newline. But the reason I posted this thread is because that would be unclean. Normal paragraphs are terminated by hard newlines, and so should the final paragraph.