From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: enriched-mode and switching major modes. Date: Sun, 05 Sep 2004 13:25:40 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <200409042358.i84Nwjt19152@raven.dms.auburn.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1094405229 17966 80.91.224.253 (5 Sep 2004 17:27:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Sep 2004 17:27:09 +0000 (UTC) Cc: boris@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 05 19:27:03 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C40n8-0007Hd-00 for ; Sun, 05 Sep 2004 19:27:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C40sH-0005W2-1n for ged-emacs-devel@m.gmane.org; Sun, 05 Sep 2004 13:32:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C40rl-0005L7-99 for emacs-devel@gnu.org; Sun, 05 Sep 2004 13:31:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C40rk-0005Kp-Gw for emacs-devel@gnu.org; Sun, 05 Sep 2004 13:31:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C40rk-0005KL-D8 for emacs-devel@gnu.org; Sun, 05 Sep 2004 13:31:48 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C40lo-0002WX-K2 for emacs-devel@gnu.org; Sun, 05 Sep 2004 13:25:40 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1C40lo-00083m-7O; Sun, 05 Sep 2004 13:25:40 -0400 Original-To: Luc Teirlinck In-reply-to: <200409042358.i84Nwjt19152@raven.dms.auburn.edu> (message from Luc Teirlinck on Sat, 4 Sep 2004 18:58:45 -0500 (CDT)) 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26798 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26798 `enriched-mode' sets buffer-local values for these variables, but when the major mode is set by `after-find-file', these variables are killed. It sounds like enriched-mode is called too early. What is the command that you give? One solution is to make Enriched mode into a major mode. It already very much "feels" like one. The other solution would be to make all variables that Enriched mode needs to set permanent locals. For `use-hard-newlines' we already decided that there was no problem. The former is acceptable, but not really nice. The latter is not acceptable at all. So I am looking for some other solution.