From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andries Brouwer Newsgroups: gmane.emacs.devel Subject: Re: cc-mode adds newlines Date: Sun, 21 Nov 2004 14:43:23 +0100 Message-ID: <20041121134323.GL20436@apps.cwi.nl> References: <20041121020850.GA20436@apps.cwi.nl> <20041121122629.GE20436@apps.cwi.nl> <20041121124911.GG20436@apps.cwi.nl> <20041121132804.GJ20436@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 1101044650 2648 80.91.229.6 (21 Nov 2004 13:44:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 Nov 2004 13:44:10 +0000 (UTC) Cc: bug-cc-mode@gnu.org, Alan Mackenzie , Andries Brouwer , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 21 14:44:00 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CVs0V-0007HI-00 for ; Sun, 21 Nov 2004 14:44:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CVs9V-0007bN-If for ged-emacs-devel@m.gmane.org; Sun, 21 Nov 2004 08:53:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CVs96-0007Tq-Aq for emacs-devel@gnu.org; Sun, 21 Nov 2004 08:52:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CVs95-0007TX-MY for emacs-devel@gnu.org; Sun, 21 Nov 2004 08:52:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CVs95-0007TN-It for emacs-devel@gnu.org; Sun, 21 Nov 2004 08:52:51 -0500 Original-Received: from [192.16.191.8] (helo=hera.cwi.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CVrzw-0000PU-V6; Sun, 21 Nov 2004 08:43:25 -0500 Original-Received: from apps.cwi.nl (apps.cwi.nl [192.16.191.34]) by hera.cwi.nl with ESMTP id iALDhOxh006917 for ; Sun, 21 Nov 2004 14:43:24 +0100 (MET) Original-Received: (from aeb@localhost) by apps.cwi.nl (8.11.7p1+Sun/8.12.2) id iALDhNB16395; Sun, 21 Nov 2004 14:43:23 +0100 (MET) Original-To: David Kastrup Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i 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 Xref: main.gmane.org gmane.emacs.devel:30170 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30170 On Sun, Nov 21, 2004 at 02:37:49PM +0100, David Kastrup wrote: > Andries Brouwer writes: > > > My point today is: > > emacs must never unexpectedly change a file behind the user's back. > > It doesn't. Only when you edit and save a modified file, does it > interpret the variable. That is not quite correct. Also when I save an unmodified file under a different name the "copy" gets an extra newline. > > That is, the default settings must be so that emacs asks > > before changing. > > I disagree. The default for most modes should be to keep the files as > they are without asking. But since files without newline at the end > are not valid C files, the default for C clearly should be different. You mean "are not valid C99 files". But they are valid C files for many other C dialects. The mode is not called c99 mode. Andries