From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Tag search and "invalid face" error from htmlize-buffer Date: Tue, 13 Nov 2007 12:01:09 +0100 Message-ID: <2ECA6DA3-B719-4A8F-9604-7EC9CEBDCA02@science.uva.nl> References: <473736A8.90903@gmail.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IrtW7-0001ZH-To for emacs-orgmode@gnu.org; Tue, 13 Nov 2007 06:01:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IrtW6-0001Z4-A5 for emacs-orgmode@gnu.org; Tue, 13 Nov 2007 06:01:15 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IrtW6-0001Z1-3g for emacs-orgmode@gnu.org; Tue, 13 Nov 2007 06:01:14 -0500 Received: from smtp.science.uva.nl ([146.50.4.84]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IrtW5-0007cI-Gj for emacs-orgmode@gnu.org; Tue, 13 Nov 2007 06:01:13 -0500 In-Reply-To: <473736A8.90903@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Wanrong Lin Cc: emacs-orgmode@gnu.org On 11Nov2007, at 6:06 PM, Wanrong Lin wrote: > Hi, > > I wonder anyone has seen this: > > After I do a tag search (for TODO items), if I do "htmlize-buffer" > on the search result, I will get an "invalid face" error. Since I > have quite some customization on my org-mode, I am not quite sure > whether this is my problem, or org-mode, or htmlize-buffer's problem. > > Thank you. Does this in .emacs fix the problem? (eval-after-load "htmlize" '(progn (defadvice htmlize-faces-in-buffer (after org-no-nil-faces activate) "Make sure there are no nil faces" (setq ad-return-value (delq nil ad-return-value)))))