[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: |
Wed, 15 Jun 2005 15:07:05 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Werner LEMBERG <address@hidden> writes:
> If I put
>
> Local Variables:
> mode: enriched
> End:
>
> into a file and I load it into Emacs, I get the message
>
> Toggling enriched-mode off; better pass an explicit argument.
>
> Why?
I did a quick analysis:
When you save a file with enriched minor mode on, it inserts
Content-Type: text/enriched
at the top of the file. The next time you load it, this text turns
enriched mode on. Then the "mode: enriched" at the end of the file
switches it off again. Not using the "mode: enriched" local variable
probably solves your problem.
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.
Lute.
- enriched-mode problems, Werner LEMBERG, 2005/06/15
- Re: enriched-mode problems,
Lute Kamstra <=
- 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