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 15:03:17 +0100 Message-ID: <20041121140317.GN20436@apps.cwi.nl> 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 1101045853 5318 80.91.229.6 (21 Nov 2004 14:04:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 Nov 2004 14:04:13 +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 15:04:08 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 1CVsK0-0008GC-00 for ; Sun, 21 Nov 2004 15:04:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CVsT0-0003v7-As for ged-emacs-devel@m.gmane.org; Sun, 21 Nov 2004 09:13:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CVsSr-0003v0-8P for emacs-devel@gnu.org; Sun, 21 Nov 2004 09:13:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CVsSq-0003uZ-9x for emacs-devel@gnu.org; Sun, 21 Nov 2004 09:13:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CVsSq-0003uL-0l for emacs-devel@gnu.org; Sun, 21 Nov 2004 09:13:16 -0500 Original-Received: from [192.16.191.8] (helo=hera.cwi.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CVsJC-00046p-M0; Sun, 21 Nov 2004 09:03:19 -0500 Original-Received: from apps.cwi.nl (apps.cwi.nl [192.16.191.34]) by hera.cwi.nl with ESMTP id iALE3Hxh012630 for ; Sun, 21 Nov 2004 15:03:17 +0100 (MET) Original-Received: (from aeb@localhost) by apps.cwi.nl (8.11.7p1+Sun/8.12.2) id iALE3HO18867; Sun, 21 Nov 2004 15:03:17 +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:30174 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30174 On Sun, Nov 21, 2004 at 02:51:49PM +0100, David Kastrup wrote: > "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. Let me quote the Reference Manual in front of me. "Blanks, tabs, newlines, and comments (collectively, "white space") are ignored except as they serve to separate tokens." Not "happen to work" - it is the C definition. Andries