emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cc-mode adds newlines


From: David Kastrup
Subject: Re: cc-mode adds newlines
Date: Sun, 21 Nov 2004 14:51:49 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

Andries Brouwer <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]