From: Wanrong Lin <wanrong.lin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Tag search and "invalid face" error from htmlize-buffer
Date: Tue, 13 Nov 2007 10:24:57 -0500 [thread overview]
Message-ID: <4739C1C9.806@gmail.com> (raw)
In-Reply-To: <2ECA6DA3-B719-4A8F-9604-7EC9CEBDCA02@science.uva.nl>
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
prev parent reply other threads:[~2007-11-13 15:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-11 17:06 Tag search and "invalid face" error from htmlize-buffer Wanrong Lin
2007-11-12 5:24 ` Bastien
2007-11-12 14:53 ` Wanrong Lin
2007-11-12 19:54 ` Wanrong Lin
2007-11-13 11:01 ` Bastien
2007-11-13 11:01 ` Carsten Dominik
2007-11-13 15:24 ` Wanrong Lin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4739C1C9.806@gmail.com \
--to=wanrong.lin@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).