[Top][All Lists]

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

Re: cc-mode adds newlines

From: Andries Brouwer
Subject: Re: cc-mode adds newlines
Date: Sun, 21 Nov 2004 14:28:04 +0100
User-agent: Mutt/1.4i

On Sun, Nov 21, 2004 at 02:08:41PM +0100, David Kastrup wrote:

> I don't particularly like the idea that every mode that has particular
> requirements for a variable like that has to have a separately named
> variable of its own: this makes it more difficult to figure out what
> happens.  I think that in the long run something more transparent for
> mode-specific defaults should be found.

Yes, indeed.

There is a general discussion here on the use of mode variables,
but I am afraid of commenting on that right now - like to avoid
blowing up this small discussion into too many threads. Maybe later.

My point today is:
emacs must never unexpectedly change a file behind the user's back.

That is, the default settings must be so that emacs asks
before changing.

This general principle applied to the final newline leads to a
require-final-newline with default ask.

I do not believe that it is meaningful to have a separate
c-require-final-newline, but should it turn out that people
exist that really want different behaviours depending on major mode,
then for all major modes the default must again be ask
(or the value of the global variable).


reply via email to

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