From: Lute Kamstra <Lute.Kamstra.lists@xs4all.nl>
Cc: emacs-devel@gnu.org
Subject: Re: enriched-mode problems
Date: Wed, 15 Jun 2005 15:07:05 +0200 [thread overview]
Message-ID: <87u0jzsr9i.fsf@xs4all.nl> (raw)
In-Reply-To: <20050615.070838.116346726.wl@gnu.org> (Werner LEMBERG's message of "Wed, 15 Jun 2005 07:08:38 +0200 (CEST)")
Werner LEMBERG <wl@gnu.org> 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.
next prev parent reply other threads:[~2005-06-15 13:07 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-15 5:08 enriched-mode problems Werner LEMBERG
2005-06-15 13:07 ` Lute Kamstra [this message]
2005-06-15 13:18 ` Werner LEMBERG
2005-06-15 13:28 ` Ralf Angeli
2005-06-15 14:39 ` Lute Kamstra
2005-06-15 15:20 ` David Kastrup
2005-06-15 15:21 ` Ralf Angeli
2005-06-15 16:28 ` Stefan Monnier
2005-06-15 18:30 ` Ralf Angeli
2005-06-15 18:59 ` Stefan Monnier
2005-06-16 4:07 ` Richard Stallman
2005-06-16 11:45 ` Lute Kamstra
2005-06-17 4:38 ` Richard Stallman
2005-06-19 10:41 ` Lute Kamstra
2005-06-20 3:49 ` Richard Stallman
2005-06-20 7:08 ` David Kastrup
2005-06-21 2:00 ` Richard Stallman
2005-06-21 5:29 ` David Kastrup
2005-06-21 15:14 ` Gaëtan LEURENT
2005-06-21 22:58 ` Richard M. Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87u0jzsr9i.fsf@xs4all.nl \
--to=lute.kamstra.lists@xs4all.nl \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).