From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: cc-mode adds newlines Date: Sun, 21 Nov 2004 14:51:49 +0100 Message-ID: References: <20041121020850.GA20436@apps.cwi.nl> <20041121122629.GE20436@apps.cwi.nl> <20041121124911.GG20436@apps.cwi.nl> <20041121132804.GJ20436@apps.cwi.nl> <20041121134323.GL20436@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 1101045151 3642 80.91.229.6 (21 Nov 2004 13:52:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 Nov 2004 13:52:31 +0000 (UTC) Cc: bug-cc-mode@gnu.org, Alan Mackenzie , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 21 14:52:23 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 1CVs8d-0007bC-00 for ; Sun, 21 Nov 2004 14:52:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CVsHd-0007P3-5C for ged-emacs-devel@m.gmane.org; Sun, 21 Nov 2004 09:01:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CVsHJ-0007HG-AC for emacs-devel@gnu.org; Sun, 21 Nov 2004 09:01:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CVsHE-0007Gb-JM for emacs-devel@gnu.org; Sun, 21 Nov 2004 09:01:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CVsHD-0007Fn-Mf for emacs-devel@gnu.org; Sun, 21 Nov 2004 09:01:16 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CVs86-0001xh-HX for emacs-devel@gnu.org; Sun, 21 Nov 2004 08:51:50 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1CVs6V-0005G9-EK; Sun, 21 Nov 2004 08:50:11 -0500 Original-To: Andries Brouwer In-Reply-To: <20041121134323.GL20436@apps.cwi.nl> (Andries Brouwer's message of "Sun, 21 Nov 2004 14:43:23 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) 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:30171 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30171 Andries Brouwer writes: > On Sun, Nov 21, 2004 at 02:37:49PM +0100, David Kastrup wrote: >> >> 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. "happens to work" and "valid" are two different things. I don't know any C standard that would specify well-defined behavior for a file with a missing newline at the end. The term "valid" is defined by a language definition, not by the behavior of a particular implementation. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum