[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: enriched-mode problems
From: |
Lute Kamstra |
Subject: |
Re: enriched-mode problems |
Date: |
Thu, 16 Jun 2005 13:45:14 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Richard Stallman <address@hidden> writes:
> I've got the same problem with auto-fill sometimes. I switch that
> mode on with text-mode-hook. When I visit a text file that has "mode:
> auto-fill", it is effectively turned off. Maybe we should do
> (some-minor-mode 1) for "mode: some-minor-mode" constructs.
>
> That would be hard, since the code doesn't know whether the mode
> is a minor or major mode.
Can't you tell a major mode from a minor mode by looking at the
argument list?
> But worse than that, it is misguided.
>
> It would be a mistake to try to make this "work", since it is
> misguided ayway. Minor modes such as auto-fill mode are personal
> choices; files should not specify them at all.
While I tend to agree with you in theory (for the case of auto-fill
mode), the problem still bites me in practice. I don't control all
files I visit. Other people might put "mode: auto-fill" in a file and
that will cause problems for me. Also, it is quite clear that someone
intends to turn auto-fill on in that case. So why not do that instead
of toggling?
> It might be useful to find a way to arrange a warning when files use
> Mode: or -*-...-*- to specify minor modes.
In general, there are examples of minor modes (Ralf and David gave an
example) for which it is useful to turn them on (or off) for a certain
file because of the _contents_ of that file. So it would be nice to
have a mechanism to do this.
Lute.
- Re: enriched-mode problems, (continued)
- Re: enriched-mode problems, Lute Kamstra, 2005/06/15
- Re: enriched-mode problems, Werner LEMBERG, 2005/06/15
- Re: enriched-mode problems, Ralf Angeli, 2005/06/15
- Re: enriched-mode problems, Stefan Monnier, 2005/06/15
- Re: enriched-mode problems, Ralf Angeli, 2005/06/15
- Re: enriched-mode problems, Stefan Monnier, 2005/06/15
Re: enriched-mode problems, Richard Stallman, 2005/06/16
- Re: enriched-mode problems,
Lute Kamstra <=
- Re: enriched-mode problems, Richard Stallman, 2005/06/17
- Re: enriched-mode problems, Lute Kamstra, 2005/06/19
- Re: enriched-mode problems, Richard Stallman, 2005/06/19
- Re: enriched-mode problems, David Kastrup, 2005/06/20
- Re: enriched-mode problems, Richard Stallman, 2005/06/20
- Re: enriched-mode problems, David Kastrup, 2005/06/21
- Re: enriched-mode problems, Gaƫtan LEURENT, 2005/06/21
- Re: enriched-mode problems, Richard M. Stallman, 2005/06/21