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 16:03:44 +0100 Message-ID: <20041121150343.GQ20436@apps.cwi.nl> References: <20041119231343.GA19603@apps.cwi.nl> <20041121020850.GA20436@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 1101049472 12828 80.91.229.6 (21 Nov 2004 15:04:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 Nov 2004 15:04:32 +0000 (UTC) Cc: Jari Aalto , 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 16:04: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 1CVtGI-0002Xo-00 for ; Sun, 21 Nov 2004 16:04:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CVtPI-00048L-Fy for ged-emacs-devel@m.gmane.org; Sun, 21 Nov 2004 10:13:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CVtOv-00045o-46 for emacs-devel@gnu.org; Sun, 21 Nov 2004 10:13:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CVtOt-000447-GE for emacs-devel@gnu.org; Sun, 21 Nov 2004 10:13:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CVtOt-00043x-Cf for emacs-devel@gnu.org; Sun, 21 Nov 2004 10:13:15 -0500 Original-Received: from [192.16.191.8] (helo=hera.cwi.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CVtFl-0007aB-RU for emacs-devel@gnu.org; Sun, 21 Nov 2004 10:03:50 -0500 Original-Received: from apps.cwi.nl (apps.cwi.nl [192.16.191.34]) by hera.cwi.nl with ESMTP id iALF3ixh027558 for ; Sun, 21 Nov 2004 16:03:44 +0100 (MET) Original-Received: (from aeb@localhost) by apps.cwi.nl (8.11.7p1+Sun/8.12.2) id iALF3iX23841; Sun, 21 Nov 2004 16:03:44 +0100 (MET) Original-To: Andreas Schwab 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:30179 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30179 On Sun, Nov 21, 2004 at 03:47:54PM +0100, Andreas Schwab wrote: > > Old compilers just accept the C source without final newline > > without any complaint. Some newer pedantic ones print a warning. > > If you've really been using C for thirty years then you should have known > that C source files without final newline are a _real_ problem. > > See > for an example. Hi Andreas - Thanks - you are always good for solid facts. So, yes, there exists, or has existed, a compiler or compilation setup where an error was returned for a missing final newline. (1988 "Gnu on 386 running UNIX" is not very specific.) That makes it extra clear why it is very useful to have the warning provided by setting require-final-newline to ask. Andries