[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.
- Re: cc-mode adds newlines, (continued)
- Message not available
- Re: cc-mode adds newlines, Andries Brouwer, 2004/11/21
- Re: cc-mode adds newlines, Eli Zaretskii, 2004/11/21
- Re: cc-mode adds newlines, Stefan Monnier, 2004/11/21
- Re: cc-mode adds newlines, Richard Stallman, 2004/11/22
- Re: cc-mode adds newlines, Stefan Monnier, 2004/11/22
- Re: cc-mode adds newlines, Kevin Rodgers, 2004/11/22
- Re: cc-mode adds newlines, Stefan Monnier, 2004/11/22
- Re: cc-mode adds newlines,
Richard Stallman <=
- Re: cc-mode adds newlines, Stefan Monnier, 2004/11/23
- Re: cc-mode adds newlines, Martin Stjernholm, 2004/11/28
- Re: cc-mode adds newlines, Richard Stallman, 2004/11/29
- Re: cc-mode adds newlines, Martin Stjernholm, 2004/11/30
- Re: cc-mode adds newlines, Richard Stallman, 2004/11/30
- Re: cc-mode adds newlines, Andreas Schwab, 2004/11/21
- Re: cc-mode adds newlines, Andries Brouwer, 2004/11/21
- 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