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: Sun, 12 Sep 2004 11:51:10 -0500 (CDT) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <200409121651.i8CGpAE14303@raven.dms.auburn.edu> References: <200409042358.i84Nwjt19152@raven.dms.auburn.edu> <200409060059.i860xdo20431@raven.dms.auburn.edu> <200409110214.i8B2EaZ12276@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1095007929 3815 80.91.229.6 (12 Sep 2004 16:52:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Sep 2004 16:52: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 12 18:51:57 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 1C6Xa1-0001Wn-00 for ; Sun, 12 Sep 2004 18:51:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C6XfV-00007B-5f for ged-emacs-devel@m.gmane.org; Sun, 12 Sep 2004 12:57:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C6XfP-00006w-Qx for emacs-devel@gnu.org; Sun, 12 Sep 2004 12:57:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C6XfO-00006k-BF for emacs-devel@gnu.org; Sun, 12 Sep 2004 12:57:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C6XfO-00006h-8h for emacs-devel@gnu.org; Sun, 12 Sep 2004 12:57:30 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C6XZg-0005zj-95; Sun, 12 Sep 2004 12:51:36 -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 i8CGpZuE008936; Sun, 12 Sep 2004 11:51:35 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id i8CGpAE14303; Sun, 12 Sep 2004 11:51:10 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Sun, 12 Sep 2004 05:10:35 -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:27046 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27046 Richard Stallman wrote: Or, alternatively, there could be a list of local variables not to kill when changing major modes. This list would itself be local (that's how it differs from making the variables permanent). Enriched mode would put them onto this list. That way, it would not have to do anything like turn itself off and on. Even if `kill-all-local-variables' does not kill these variables, the major mode can override them. In the case of `indent-line-function', most modes that are usually combined with Enriched mode will. I think we are getting into problems that are going to get worse and worse as Enriched mode gets more extensive. I more and more agree with Oliver that we should have two Enriched modes. The minor mode Enriched mode would be a true minor mode. It would essentially only set ` buffer-file-format' and maybe do some additional minor stuff. The major mode would replace the current "major mode in a minor mode". If necessary, we could have several derived modes of the new major mode Enriched mode, that would essentially have the same effect as enabling a second major mode, but in a way that does not try to "fight" with Enriched mode. Sincerely, Luc.