From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: enriched-mode and switching major modes. Date: Tue, 14 Sep 2004 08:26:50 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <200409042358.i84Nwjt19152@raven.dms.auburn.edu> <200409060059.i860xdo20431@raven.dms.auburn.edu> <200409110214.i8B2EaZ12276@raven.dms.auburn.edu> <200409121651.i8CGpAE14303@raven.dms.auburn.edu> <200409140346.i8E3kSk19152@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1095165082 23286 80.91.229.6 (14 Sep 2004 12:31:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Sep 2004 12:31:22 +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 Tue Sep 14 14:30:57 2004 Return-path: Original-Received: from hermes.netfonds.no ([80.91.224.195]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C7CSW-0006Qb-00 for ; Tue, 14 Sep 2004 14:30:56 +0200 Original-Received: from mail-relay.eunet.no (mail-relay.eunet.no [193.71.71.242]) by hermes.netfonds.no (8.12.8p1/8.12.8) with ESMTP id i8ECSQOn026227 for ; Tue, 14 Sep 2004 14:28:26 +0200 (CEST) Original-Received: from hermes.netfonds.no (hermes.netfonds.no [80.91.224.195]) by mail-relay.eunet.no (8.12.11/8.12.11/GN) with ESMTP id i8ECSNa0002485 for ; Tue, 14 Sep 2004 14:28:23 +0200 (CEST) (envelope-from emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org) Original-Received: from mail-relay.eunet.no (mail-relay.eunet.no [193.71.71.242]) by hermes.netfonds.no (8.12.8p1/8.12.8) with ESMTP id i8ECReOn029244 for ; Tue, 14 Sep 2004 14:27:40 +0200 (CEST) Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by mail-relay.eunet.no (8.12.11/8.12.11/GN) with ESMTP id i8ECRYCH002008 for ; Tue, 14 Sep 2004 14:27:35 +0200 (CEST) (envelope-from emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org) Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7CUq-0007ud-Ey for ged-emacs-devel@m.gmane.org; Tue, 14 Sep 2004 08:33:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7CUj-0007uY-8C for emacs-devel@gnu.org; Tue, 14 Sep 2004 08:33:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7CUh-0007uM-Ex for emacs-devel@gnu.org; Tue, 14 Sep 2004 08:33:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7CUh-0007uJ-Bu for emacs-devel@gnu.org; Tue, 14 Sep 2004 08:33:11 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7COm-0004PP-9i; Tue, 14 Sep 2004 08:27:04 -0400 Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 842E4B3027A; Tue, 14 Sep 2004 08:26:54 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 595DF8CA23; Tue, 14 Sep 2004 08:26:50 -0400 (EDT) Original-To: Luc Teirlinck In-Reply-To: <200409140346.i8E3kSk19152@raven.dms.auburn.edu> (Luc Teirlinck's message of "Mon, 13 Sep 2004 22:46:28 -0500 (CDT)") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=0, requis 5) X-MailScanner-From: monnier@iro.umontreal.ca 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:27104 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27104 > 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. > > Maybe that one shouldn't be set by Enriched mode. I obviously agree (since I all but requested it in a previous message). > Without this particular setting, how easy is it to do that? > It would not properly update `enriched-old-bindings'. I lost some of the context, but enriched-old-bindings is (or should be) permanent-local (at least as long as eriched-mode is). > Also, while it is unlikely that a major mode would try to override > `buffer-display-table' or `default-text-properties', the fact remains that > if `enriched-mode' continues to grow, the danger of one of its variables > being overridden by the major mode increases. I wouldn't worry so much about the future: it leads to overengineering. Also if you look at the past, you'd see that enriched-mode hasn't been growing that much, so the risk is indeed not as clear as you seem to imply. Stefan