From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: bug with org-mode-hook and text-scale-set Date: Thu, 29 Mar 2012 12:45:37 +0200 Message-ID: <87obrfu1m6.fsf@gnu.org> References: <87r4wveo3u.wl%dmaus@ictsoc.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDCqC-00069O-Bo for emacs-orgmode@gnu.org; Thu, 29 Mar 2012 06:44:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDCq4-000419-TT for emacs-orgmode@gnu.org; Thu, 29 Mar 2012 06:44:27 -0400 Received: from incoming2.cnam.fr ([163.173.128.34]:7404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDCq4-00040w-NH for emacs-orgmode@gnu.org; Thu, 29 Mar 2012 06:44:20 -0400 In-Reply-To: (Du Yanning's message of "Wed, 14 Mar 2012 15:46:11 +0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Du Yanning Cc: David Maus , emacs-orgmode Hi Du, Du Yanning writes: > text-mode-hook and c-mode-hook do NOT have this bug. > and the org-mode-hook of orgmode shipped within emacs 23.3 does NOT > have this bug. This is now fixed, thanks. The problem was that Org relied on `face-remapping-alist' to remap the 'default face to the 'org-default face. Relying on this mechanism produces the error you reported, because the text-scale-set doesn't interact well with remapped faces. I'm now relying on `buffer-face-mode' which seems to be a cleaner approach. Best, -- Bastien