From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: bug with org-mode-hook and text-scale-set Date: Thu, 12 Apr 2012 10:06:54 -0500 Message-ID: <874nspt2ep.fsf@fastmail.fm> References: <87r4wveo3u.wl%dmaus@ictsoc.de> <87obrfu1m6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SILc1-0003q6-Qs for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 11:07:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SILbu-0002j5-Qn for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 11:07:05 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:59229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SILbu-0002iY-DT for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 11:06:58 -0400 Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 0EEF320C75 for ; Thu, 12 Apr 2012 11:06:56 -0400 (EDT) In-Reply-To: <87obrfu1m6.fsf@gnu.org> (Bastien's message of "Thu, 29 Mar 2012 12:45:37 +0200") 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: Bastien Cc: Du Yanning , emacs-orgmode , David Maus Bastien writes: > 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. On my machine, this change causes a noticeable lag when typing in org-mode buffers. The cursor hesitates for a bit and then lurches forward. If I turn off buffer-face-mode the lag disappears. I'm still figuring out how to diagnose the problem. Best, Matt