hniksic / emacs-htmlize

Convert buffer text and decorations to HTML.
193 stars 44 forks source link

Invalid face reference: t #19

Closed jcubic closed 6 years ago

jcubic commented 6 years ago

I have code that execute lot of

(hlt-highlight-region start-pos end-pos '((t (:background "green")))))

and I got lot of errors Invalid face reference: t.

hniksic commented 6 years ago

Which version of htmlize are you using, and under which version of Emacs?

I cannot reproduce the issue using htmlize 1.53 and highlight update 4134 under Emacs 25.2.2. I am using the following steps to reproduce:

  1. load htmlize.el
  2. load highlight.el
  3. highlight a part of a buffer (e.g. *scrarch*) by evaluating (hlt-highlight-region (point) (+ 3 (point)) '((t (:background "green"))))
  4. M-x htmlize-buffer RET

The buffer appears correctly htmlized, i.e. I'm not getting the exception from the report.

jcubic commented 6 years ago

Sorry It's working probably have issue with my testing of hlt-highlight-region, when I run my highlighting function from fresh buffer it's works fine.

PS: thanks for your library.