From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Newsgroups: gmane.emacs.devel Subject: Re: enriched-mode and switching major modes. Date: Sun, 12 Sep 2004 14:18:12 -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> <200409112151.i8BLpRB13427@raven.dms.auburn.edu> <200409120146.i8C1kFu13576@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 1095013124 14916 80.91.229.6 (12 Sep 2004 18:18:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Sep 2004 18:18:44 +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 20:18:28 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 1C6Yvk-0005cC-00 for ; Sun, 12 Sep 2004 20:18:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C6Z1E-0002mY-9s for ged-emacs-devel@m.gmane.org; Sun, 12 Sep 2004 14:24:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C6Z17-0002m9-Oi for emacs-devel@gnu.org; Sun, 12 Sep 2004 14:24:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C6Z16-0002l7-2B for emacs-devel@gnu.org; Sun, 12 Sep 2004 14:24:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C6Z15-0002l4-GL for emacs-devel@gnu.org; Sun, 12 Sep 2004 14:24:00 -0400 Original-Received: from [206.47.199.163] (helo=simmts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C6YvW-0004Kj-5a; Sun, 12 Sep 2004 14:18:14 -0400 Original-Received: from empanada.home ([67.71.27.186]) by simmts5-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20040912181617.DSXZ1635.simmts5-srv.bellnexxia.net@empanada.home>; Sun, 12 Sep 2004 14:16:17 -0400 Original-Received: by empanada.home (Postfix, from userid 502) id 102712E3919; Sun, 12 Sep 2004 14:18:12 -0400 (EDT) Original-To: Luc Teirlinck In-Reply-To: <200409120146.i8C1kFu13576@raven.dms.auburn.edu> (Luc Teirlinck's message of "Sat, 11 Sep 2004 20:46:15 -0500 (CDT)") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (darwin) 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:27050 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27050 > ! (add-to-list 'enriched-marked-buffers (current-buffer)))) > ! (setq enriched-change-major-mode-flag t) > ! (enriched-mode 0) > No, because enriched-mode sets enriched-change-major-mode-flag to nil, > (It has to.) Easy to fix. BTW, why bother turning it off? Just make sure that (enriched-mode 1) correctly sets up variables even if the enriched-mode variable was already non-nil (that's good practice in general anyway). > Ayway, why try to find half-baked solutions to a completely _non-existent_ > problem? `inhibit-quit' is only a problem around code that can take > a non-trivial time to execute. Right. For example, code that calls encode-mode since encode-mode will run the minor-mode hook which will run ... Stefan