From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: Re: enriched-mode problems Date: Wed, 15 Jun 2005 15:07:05 +0200 Message-ID: <87u0jzsr9i.fsf@xs4all.nl> References: <20050615.070838.116346726.wl@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1118841018 12408 80.91.229.2 (15 Jun 2005 13:10:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Jun 2005 13:10:18 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 15 15:10:17 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DiXdX-0007I5-W4 for ged-emacs-devel@m.gmane.org; Wed, 15 Jun 2005 15:08:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DiXik-0004U4-HO for ged-emacs-devel@m.gmane.org; Wed, 15 Jun 2005 09:14:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DiXhZ-0003ti-UX for emacs-devel@gnu.org; Wed, 15 Jun 2005 09:13:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DiXhR-0003oe-At for emacs-devel@gnu.org; Wed, 15 Jun 2005 09:12:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DiXhR-0003mk-6a for emacs-devel@gnu.org; Wed, 15 Jun 2005 09:12:57 -0400 Original-Received: from [194.109.24.25] (helo=smtp-vbr5.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DiXdP-0008Gt-4d; Wed, 15 Jun 2005 09:08:47 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr5.xs4all.nl (8.13.3/8.13.3) with ESMTP id j5FD76LL050156; Wed, 15 Jun 2005 15:07:06 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DiXbl-00016W-00; Wed, 15 Jun 2005 15:07:05 +0200 Original-To: Werner LEMBERG In-Reply-To: <20050615.070838.116346726.wl@gnu.org> (Werner LEMBERG's message of "Wed, 15 Jun 2005 07:08:38 +0200 (CEST)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 31 X-Virus-Scanned: by XS4ALL Virus Scanner X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:38875 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38875 Werner LEMBERG 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.