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








_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to