From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Re: cc-mode adds newlines Date: Mon, 29 Nov 2004 01:14:26 +0100 Message-ID: References: <200411281656.iASGuMP15956@apps.cwi.nl> <5bact1lwp5.fsf@lister.roxen.com> <20041128202015.GA821@apps.cwi.nl> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101687315 1291 80.91.229.6 (29 Nov 2004 00:15:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Nov 2004 00:15:15 +0000 (UTC) Cc: bug-cc-mode@gnu.org, acm@muc.de, emacs-devel@gnu.org, monnier@iro.umontreal.ca, rms@gnu.org Original-X-From: cc-mode-help-admin@lists.sourceforge.net Mon Nov 29 01:15:09 2004 Return-path: Original-Received: from sc8-sf-sshgate.sourceforge.net ([66.35.250.220] helo=sc8-sf-spam2.sourceforge.net) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CYZC9-0001mK-00 for ; Mon, 29 Nov 2004 01:15:09 +0100 Original-Received: from sc8-sf-list1-b.sourceforge.net ([10.3.1.7] helo=projects.sourceforge.net) by sc8-sf-spam2.sourceforge.net with esmtp (Exim 4.33) id 1CYZC6-0003WR-Rp; Sun, 28 Nov 2004 16:15:07 -0800 Original-Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1CYZBZ-0004nM-8F for cc-mode-help@lists.sourceforge.net; Sun, 28 Nov 2004 16:14:33 -0800 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by sc8-sf-mx1.sourceforge.net with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.41) id 1CYZBX-0005Nx-HM for cc-mode-help@lists.sourceforge.net; Sun, 28 Nov 2004 16:14:33 -0800 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.34) id 1CYZ95-0006Xq-T1 for bug-cc-mode@gnu.org; Sun, 28 Nov 2004 19:11:59 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1CYZB7-0001HE-9e for bug-cc-mode@gnu.org; Sun, 28 Nov 2004 19:14:05 -0500 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CYZB7-0001H2-0W; Sun, 28 Nov 2004 19:14:05 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepa.post.tele.dk (Postfix) with SMTP id 6880147FE41; Mon, 29 Nov 2004 01:13:59 +0100 (CET) Original-To: Andries Brouwer In-Reply-To: <20041128202015.GA821@apps.cwi.nl> (Andries Brouwer's message of "Sun, 28 Nov 2004 21:20:16 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Original-Sender: cc-mode-help-admin@lists.sourceforge.net Errors-To: cc-mode-help-admin@lists.sourceforge.net X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.0.9-sf.net Precedence: bulk List-Unsubscribe: , List-Id: Bug reports, feature requests, and general talk about CC Mode. List-Post: List-Help: List-Subscribe: , List-Archive: X-Original-Date: Mon, 29 Nov 2004 01:14:26 +0100 Xref: main.gmane.org gmane.emacs.cc-mode.general:2066 gmane.emacs.devel:30470 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30470 Andries Brouwer writes: > On Sun, Nov 28, 2004 at 06:17:42PM +0100, Martin Stjernholm wrote: > >> you have to produce directly applicable arguments >> if you want to convince me. > > The basic point is that of data integrity. > Files must not be changed unless the user asks for a change. > When there has not been any such explicit request, and .emacs > is empty, then emacs should not do any helpful polishing. > > The current situation, where (after 0 changes) save-buffer > returns "(No changes need to be saved)" and write-file > nevertheless writes a different file, is unfortunate and messy. I would say that such behaviour is a bug in require-final-newline, not in the way cc-mode uses it. IMO, require-final-newline should only be checked when saving a file which is already modified. -- Kim F. Storm http://www.cua.dk ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/