From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: Re: cc-mode adds newlines Date: Mon, 22 Nov 2004 18:55:28 GMT Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101149603 9216 80.91.229.6 (22 Nov 2004 18:53:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Nov 2004 18:53:23 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 22 19:53:09 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 1CWJJF-0000vJ-00 for ; Mon, 22 Nov 2004 19:53:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWJSI-0001ew-Pd for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Nov 2004 14:02:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CWJSH-0001eL-3V for bug-gnu-emacs@gnu.org; Mon, 22 Nov 2004 14:02:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CWJSF-0001dJ-Sx for bug-gnu-emacs@gnu.org; Mon, 22 Nov 2004 14:02:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWJSF-0001dG-Ok for bug-gnu-emacs@gnu.org; Mon, 22 Nov 2004 14:02:27 -0500 Original-Received: from [130.59.10.2] (helo=chx400.switch.ch) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CWJIg-0002Vp-3i for bug-gnu-emacs@gnu.org; Mon, 22 Nov 2004 13:52:34 -0500 Original-Received: from mailboy.risq.ca ([192.26.210.45] helo=mailboy.risq.qc.ca) by chx400.switch.ch with esmtp (Exim 3.20 #1) id 1CWJId-0001pA-00 for gnu-emacs-bug@moderators.isc.org; Mon, 22 Nov 2004 19:52:31 +0100 Original-Received: from charlie.risq.qc.ca (unknown [192.26.210.24]) by mailboy.risq.qc.ca (Postfix) with ESMTP id A619B8F6 for ; Mon, 22 Nov 2004 13:52:25 -0500 (EST) Original-Received: from charlie.risq.qc.ca (localhost [127.0.0.1]) by charlie.risq.qc.ca (8.12.10+Sun/8.12.9) with ESMTP id iAMItUJh015400 for ; Mon, 22 Nov 2004 13:55:30 -0500 (EST) Original-Received: by charlie.risq.qc.ca (8.12.10+Sun/8.12.9/Submit) id iAMItSJ4015399; Mon, 22 Nov 2004 13:55:28 -0500 (EST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.bug User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:xqjw56qeQJOcQzUCjMloO4DkLOQ= Original-Lines: 23 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1101149728 132.204.24.84 (Mon, 22 Nov 2004 13:55:28 EST) Original-NNTP-Posting-Date: Mon, 22 Nov 2004 13:55:28 EST X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:9783 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:9783 > The C standard requires a newline. Where? > Regardless of standards, there are tools out there which do not behave > properly if a file does not end in a newline. Yup. A good reason to set require-final-newlnie to `ask'. > Sometimes they even misbehave _silently_. Make that a "Usually". > And finally, I have a very hard time imagining a situation where it's > important to _NOT_ have a final newline in a text file, especially > a C source file Come on, that's easy. Think of the usual "proof by diagonalization". I.e. one such situation is when you want to find out if the tool misbehaves in the absence of a final newline. Stefan