From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [bug] "Invalid face" when exporting code block to HTML Date: Thu, 05 Jan 2012 18:18:42 -0500 Message-ID: <16127.1325805522@alphaville.americas.hpqcorp.net> References: <80aa61ls7b.fsf@somewhere.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Riwa5-0006cO-Sn for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 18:18:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Riwa4-0000Ti-OA for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 18:18:45 -0500 Received: from g1t0026.austin.hp.com ([15.216.28.33]:19182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Riwa4-0000Te-F5 for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 18:18:44 -0500 In-Reply-To: Message from "Sebastien Vauban" of "Thu, 05 Jan 2012 23:06:48 +0100." <80aa61ls7b.fsf@somewhere.org> 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: Sebastien Vauban Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Sebastien Vauban wrote: > Hello, > > Not a good day for me, today... > > * Summary > > Quite "simple": the following block generates an "Invalid face" error when > exported to HTML. > > #+begin_src sh > svn checkout http://svn/trunk/dev/ mydev > #+end_src > > This worked yesterday. Does it ring a bell to someone? Could some recent > commit be responsible of this? > Can't reproduce it either with a slightly earlier version of org (.19) or latest (.44 - note that I'm ahead of origin/master by 3 commits). Try evaluating this expression which is the one that gave you the error: (htmlize-face-size 'default) I get 113 in my setup, so this looks like an htmlize error. I don't understand where the nil face (which is indeed invalid) comes from. Also htmlize-face-size wraps the face-attribute call inside an (ignore-errors ...) form, so it should *not* blow up. Are you using some old outdated htmlize code by any chance? Nick > * Version info > > GNU Emacs 24.0.92.1 (i386-mingw-nt5.1.2600) of 2011-12-07 on MARVIN > > Org-mode version 7.8.03 (release_7.8.03.31.g28541) > > * Backtrace > > #+begin_src emacs-lisp > Debugger entered--Lisp error: (error "Invalid face") > internal-get-lisp-face-attribute(nil :height nil) > face-attribute(nil :height) > ... > htmlize-face-size(default) > ...