branch: elpa/htmlize
commit 7f94aa21b817fa72a9858bb7b1ebf516c75bb6bc
Author: Hrvoje Niksic <[email protected]>
Commit: Hrvoje Niksic <[email protected]>

    Conditionalize on color-instance-rgb-components.
---
 htmlize.el | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/htmlize.el b/htmlize.el
index 8eb93dd..df5d8d5 100644
--- a/htmlize.el
+++ b/htmlize.el
@@ -744,11 +744,7 @@ If no rgb.txt file is found, return nil."
          (t
           ;; We're getting the RGB components from Emacs.
           (let ((rgb
-                 ;; Here I cannot conditionalize on (fboundp ...) 
-                 ;; because ps-print under some versions of GNU Emacs
-                 ;; defines its own dummy version of
-                 ;; `color-instance-rgb-components'.
-                 (if htmlize-running-xemacs
+                 (if (fboundp 'color-instance-rgb-components)
                      (mapcar (lambda (arg)
                                (/ arg 256))
                              (color-instance-rgb-components

Reply via email to