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: Fri, 4 Mar 2005 21:03:04 -0500 (EST) Message-ID: <1580.220.255.169.59.1109988184.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> 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 1109987987 5070 80.91.229.2 (5 Mar 2005 01:59:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 Mar 2005 01:59:47 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 05 02:59:47 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D7OZq-00084p-4N for ged-emacs-devel@m.gmane.org; Sat, 05 Mar 2005 02: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 1D7Ot6-0001y9-VL for ged-emacs-devel@m.gmane.org; Fri, 04 Mar 2005 21:19:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D7Orv-0001Ck-VE for emacs-devel@gnu.org; Fri, 04 Mar 2005 21:18:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D7Orp-00018i-Lg for emacs-devel@gnu.org; Fri, 04 Mar 2005 21:18:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D7Orp-00018Y-G7 for emacs-devel@gnu.org; Fri, 04 Mar 2005 21:18:09 -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 1D7OdU-0005zB-D7; Fri, 04 Mar 2005 21:03:20 -0500 Original-Received: from stupidch by shark.dnsvelocity.com with local (Exim 4.44) id 1D7OdE-0002BR-Iq; Fri, 04 Mar 2005 21:03:04 -0500 Original-Received: from 220.255.169.59 ([220.255.169.59]) (SquirrelMail authenticated user cyd@stupidchicken.com) by www.stupidchicken.com with HTTP; Fri, 4 Mar 2005 21:03:04 -0500 (EST) In-Reply-To: Original-To: rms@gnu.org 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:34202 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34202 > 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. I don't think there's a problem in this situation; he just has to make sure that point is before the final (hard) newline before he continues editing. Furthermore, there is no need to re-position point, because the final newline is inserted inside a save-excursion, *after* point.