[Top][All Lists]

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

Re: cc-mode adds newlines

From: Richard Stallman
Subject: Re: cc-mode adds newlines
Date: Tue, 23 Nov 2004 21:27:25 -0500

    I think that would be silly.  Tons of variable might want to be set
    differently in different modes.  Do we really want to add all the
    corresponding foo-modes side-variables?

This is an example of taking something to an extreme and then
criticizing the extreme.  This particular variable seems to be a special
issue.  I'm not proposing this for all variables, only for this one.

However, we could also just add a single new variable
require-final-newline-in-modes which says what to do in certain
modes that ask for it.  The modes that now bind require-final-newline
to t would bind it to require-final-newline-in-modes instead.

    I.e. we should aim for a way to specify per-mode settings in custom.
    That would be a lot more useful and wouldn't require adding any
    new variable.

If we can do that cleanly, it would be a good thing.
But is there anyone who would want to really implement it?
Also, it isn't the time for such things now.

    - instead of `:type foo' use `:type (per-mode foo)' where (per-mode foo)
      stands for something like (repeat (cons mode foo)) where the list of modes
      can be obtained doing

If we do this, I think we should do this in a way that doesn't require
a special custom type, so that it would work for any variable.

reply via email to

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