From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter =?utf-8?Q?M=C3=BCnster?= Newsgroups: gmane.emacs.help Subject: Re: two-mode: make-local-variable and cpu consumption Date: Mon, 3 Mar 2008 21:29:12 +0100 Message-ID: <20080303202912.GA25919@gaston.couberia.bzh> References: <20080224192529.GA945@gaston.couberia.bzh> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1204576201 32293 80.91.229.12 (3 Mar 2008 20:30:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Mar 2008 20:30:01 +0000 (UTC) To: Emacs Users Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 03 21:30:28 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JWHIY-0001KU-4s for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Mar 2008 21:30:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWHI1-0001MM-AN for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Mar 2008 15:29:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JWHHg-0001Lq-SI for help-gnu-emacs@gnu.org; Mon, 03 Mar 2008 15:29:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JWHHf-0001L8-CM for help-gnu-emacs@gnu.org; Mon, 03 Mar 2008 15:29:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWHHf-0001Kz-6L for help-gnu-emacs@gnu.org; Mon, 03 Mar 2008 15:29:15 -0500 Original-Received: from smtp23.orange.fr ([80.12.242.97]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JWHHe-0004nm-Jy for help-gnu-emacs@gnu.org; Mon, 03 Mar 2008 15:29:14 -0500 Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2306.orange.fr (SMTP Server) with ESMTP id 1FEF71C00094 for ; Mon, 3 Mar 2008 21:29:13 +0100 (CET) Original-Received: from gaston.couberia.bzh (ARennes-358-1-19-78.w90-49.abo.wanadoo.fr [90.49.110.78]) by mwinf2306.orange.fr (SMTP Server) with ESMTP id DF4AF1C0008E for ; Mon, 3 Mar 2008 21:29:12 +0100 (CET) X-ME-UUID: 20080303202912914.DF4AF1C0008E@mwinf2306.orange.fr Original-Received: by gaston.couberia.bzh (Postfix, from userid 1000) id 48F4330572; Mon, 3 Mar 2008 21:29:12 +0100 (CET) Mail-Followup-To: Emacs Users Content-Disposition: inline In-Reply-To: <20080224192529.GA945@gaston.couberia.bzh> User-Agent: Mutt/1.5.17 (2007-11-01) X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52023 Archived-At: On Sun, Feb 24 2008, Peter M=C3=BCnster wrote: > I've two problems with two-mode.el: >=20 > 1.) make-local-variable does not work with default-mode and second-mode= s: > After (make-local-variable 'default-mode) and > (make-local-variable 'second-modes) new assignments with setq don't hav= e > any effect. Here I'm still looking for any hint. > 2.) When the current buffer is in two-mode-mode, the cpu usage of emacs= is > 100%. For this one, I've found the solution: The string of the default-mode mus= t be exactly the same as indicated in the status-line. With (setq default-mode (list "ConTeXt" 'context-mode)) I got the hight cpu-usage. But with (setq default-mode (list "PDFConTeXt-en" 'context-mode)) the problem is solved. Cheers, Peter --=20 http://pmrb.free.fr/contact/