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: Sat, 11 Sep 2004 21:50:06 -0500 (CDT) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <200409120250.i8C2o6l13634@raven.dms.auburn.edu> References: <200409042358.i84Nwjt19152@raven.dms.auburn.edu> <200409060059.i860xdo20431@raven.dms.auburn.edu> <200409110214.i8B2EaZ12276@raven.dms.auburn.edu> <200409112151.i8BLpRB13427@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1094957465 22797 80.91.229.6 (12 Sep 2004 02:51:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Sep 2004 02:51:05 +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 Sun Sep 12 04:50:52 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 1C6KS4-0004j6-00 for ; Sun, 12 Sep 2004 04:50:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C6KXW-0003I5-8y for ged-emacs-devel@m.gmane.org; Sat, 11 Sep 2004 22:56:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C6KXQ-0003Hz-4B for emacs-devel@gnu.org; Sat, 11 Sep 2004 22:56:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C6KXL-0003Hn-Di for emacs-devel@gnu.org; Sat, 11 Sep 2004 22:56:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C6KXL-0003Hk-C1 for emacs-devel@gnu.org; Sat, 11 Sep 2004 22:56:19 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C6KRp-0004Rj-6M; Sat, 11 Sep 2004 22:50:37 -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 i8C2oUuE006092; Sat, 11 Sep 2004 21:50:30 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id i8C2o6l13634; Sat, 11 Sep 2004 21:50:06 -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 Sat, 11 Sep 2004 18:55:49 -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:27034 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27034 Stefan Monnier wrote: Alternatively, we can go through the trouble that Luc proposes, but then we should make it generic, so that enriched-mode can just be added to a list of "permanent-local minor modes that need to be turned back on after a major mode change". I believe it is a mistake to try to find a generic solution for a problem that affects one single function, just because it is theoretically possible that at some point in the future there might be a second example. Especially since we might not really want to encourage the creation of other examples, unless really needed. `enriched-mode' is kind of peculiar in that it is a minor mode that really needs to be a kind of second major mode. Actually, an alternative to my patches would be to make it a major mode. But that would take away the present feature that it can be combined with other major modes. Sincerely, Luc.