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 13:28:07 -0500 Message-ID: <87vcl4st3c.fsf@fastmail.fm> References: <87r4wveo3u.wl%dmaus@ictsoc.de> <87obrfu1m6.fsf@gnu.org> <874nspt2ep.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIOkf-0006lp-3D for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 14:28:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SIOkd-0003qb-5m for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 14:28:12 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:51121) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIOkc-0003qO-MS for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 14:28:11 -0400 Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 1F94C21E18 for ; Thu, 12 Apr 2012 14:28:09 -0400 (EDT) In-Reply-To: <874nspt2ep.fsf@fastmail.fm> (Matt Lundin's message of "Thu, 12 Apr 2012 10:06:54 -0500") 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 Matt Lundin writes: > 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. Another question: is it customary for major modes to invoke buffer-face-mode? I was a bit confused when I first saw "BufFace" in the mode-line, as I had not explicitly invoked the minor mode. My understanding was that this was primarily intended as a minor mode for user-level modifications, not for major modes to rely on (but I may very well be mistaken). Best, Matt