From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Benjamin Riefenstahl Newsgroups: gmane.emacs.devel Subject: Re: cc-mode adds newlines Date: Mon, 22 Nov 2004 12:54:24 +0100 Message-ID: References: <20041121122629.GE20436@apps.cwi.nl> <20041121142946.GO20436@apps.cwi.nl> <1101063835.549340.23229.nullmailer@Update.UU.SE> <20041121211900.GA25181@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 1101124589 27043 80.91.229.6 (22 Nov 2004 11:56:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Nov 2004 11:56:29 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 22 12:56:18 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 1CWCnq-0006MB-00 for ; Mon, 22 Nov 2004 12:56:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWCws-0003Bv-9y for ged-emacs-devel@m.gmane.org; Mon, 22 Nov 2004 07:05:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CWCwL-0003BS-Qw for emacs-devel@gnu.org; Mon, 22 Nov 2004 07:05:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CWCwH-0003AA-K2 for emacs-devel@gnu.org; Mon, 22 Nov 2004 07:05:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWCwH-00039l-GE for emacs-devel@gnu.org; Mon, 22 Nov 2004 07:05:01 -0500 Original-Received: from [193.28.100.151] (helo=mail.epost.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CWCmq-0001qo-DV for emacs-devel@gnu.org; Mon, 22 Nov 2004 06:55:16 -0500 Original-Received: from seneca.benny.turtle-trading.net.epost.de (193.99.153.30) by mail.epost.de (7.2.033.1) (authenticated as Benjamin.Riefenstahl) id 41A148CD00009DE5; Mon, 22 Nov 2004 12:55:15 +0100 Original-To: Andries Brouwer In-Reply-To: <20041121211900.GA25181@apps.cwi.nl> (Andries Brouwer's message of "Sun, 21 Nov 2004 22:19:01 +0100") User-Agent: Gnus/5.1001 (Gnus v5.10.1) 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:30239 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30239 Hi Andries, Andries Brouwer writes: > It is also broken because the CC major mode is documented as "C > mode: Major mode for editing K&R and ANSI C code", while K&R C is > explicitly documented as not requiring a final newline. You mean the K&R book explicitly said so in it's pre-standard edition? Naturally there is not really a standard definition of pre-standard C. >>From what I know about C89, like most restrictions, the requirement of a final newline was most likely made because one or more compilers required it that were already implemented and used before the standard. benny