[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cc-mode adds newlines
From: |
Kim F. Storm |
Subject: |
Re: cc-mode adds newlines |
Date: |
Mon, 29 Nov 2004 01:14:26 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
Andries Brouwer <address@hidden> writes:
> On Sun, Nov 28, 2004 at 06:17:42PM +0100, Martin Stjernholm wrote:
>
>> you have to produce directly applicable arguments
>> if you want to convince me.
>
> The basic point is that of data integrity.
> Files must not be changed unless the user asks for a change.
> When there has not been any such explicit request, and .emacs
> is empty, then emacs should not do any helpful polishing.
>
> The current situation, where (after 0 changes) save-buffer
> returns "(No changes need to be saved)" and write-file
> nevertheless writes a different file, is unfortunate and messy.
I would say that such behaviour is a bug in require-final-newline,
not in the way cc-mode uses it.
IMO, require-final-newline should only be checked when saving a file
which is already modified.
--
Kim F. Storm <address@hidden> http://www.cua.dk
- Re: cc-mode adds newlines, (continued)
- Re: cc-mode adds newlines, Richard Stallman, 2004/11/21
- Re: cc-mode adds newlines, Alan Mackenzie, 2004/11/21
- Re: cc-mode adds newlines, Richard Stallman, 2004/11/23
- Re: cc-mode adds newlines, Richard Stallman, 2004/11/24
- Re: cc-mode adds newlines, Alan Mackenzie, 2004/11/25
Re: cc-mode adds newlines, Andries.Brouwer, 2004/11/28
Re: cc-mode adds newlines, Richard Stallman, 2004/11/30