emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Tag search and "invalid face" error from htmlize-buffer


From: Wanrong Lin
Subject: Re: [Orgmode] Tag search and "invalid face" error from htmlize-buffer
Date: Tue, 13 Nov 2007 10:24:57 -0500
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

Carsten Dominik wrote:

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)))))


This does help! Thank you guys very much. I need this badly because most of time I run emacs on Windows and my emacs use htmlize-buffer to do printing.

Logically, the problem probably should be solved in htmlize-buffer. After all, if a buffer can be displayed, it should be able to be htmlized. But I am happy with the workaround. :-)

Wanrong










reply via email to

[Prev in Thread] Current Thread [Next in Thread]