From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: enriched-mode and switching major modes. Date: Mon, 6 Sep 2004 11:53:57 -0500 (CDT) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <200409061653.i86GrvG21786@raven.dms.auburn.edu> References: <200409042358.i84Nwjt19152@raven.dms.auburn.edu> <200409060059.i860xdo20431@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1094489698 19333 80.91.224.253 (6 Sep 2004 16:54:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Sep 2004 16:54:58 +0000 (UTC) Cc: boris@gnu.org, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 06 18:54:50 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 1C4MlV-0004bn-00 for ; Mon, 06 Sep 2004 18:54:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4Mqh-0008GJ-2j for ged-emacs-devel@m.gmane.org; Mon, 06 Sep 2004 13:00:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C4MqT-0008FW-L4 for emacs-devel@gnu.org; Mon, 06 Sep 2004 12:59:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C4MqS-0008Dk-2R for emacs-devel@gnu.org; Mon, 06 Sep 2004 12:59:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4MqR-0008DZ-UA for emacs-devel@gnu.org; Mon, 06 Sep 2004 12:59:55 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C4Mkp-0007YS-TX; Mon, 06 Sep 2004 12:54:08 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id i86Gs7uE005492; Mon, 6 Sep 2004 11:54:07 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id i86GrvG21786; Mon, 6 Sep 2004 11:53:57 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: monnier@iro.umontreal.ca In-reply-to: (message from Stefan on 06 Sep 2004 12:42:33 -0400) 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:26831 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26831 Stefan Monnier wrote: > I now believe that Enriched mode should be temporarily disabled when > switching major modes and later re-enabled by post-command-hook. That I agree about switching it off in before-change-major-mode, but I see no reason to switch it back on afterwards. This would basically mean to make it permanant-local . It already is supposed to be permanent-local: (put 'enriched-mode 'permanent-local t) ;;;###autoload (define-minor-mode enriched-mode The problem is that some of the variables it sets are not permanent-local, which makes Enriched mode survive mode changes in an inconsistent state. Sincerely, Luc.