[Top][All Lists]

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

Re: cc-mode adds newlines

From: Stefan Monnier
Subject: Re: cc-mode adds newlines
Date: Mon, 22 Nov 2004 18:55:28 GMT
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

> The C standard requires a newline.


> 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.


reply via email to

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