On 2012-01-28, Uwe Brauer <oub(a)mat.ucm.es> wrote:
>> On Sat, 28 Jan 2012 14:59:23 +0100, Uwe Brauer
<oub(a)mat.ucm.es> wrote:
> The problem seems to be here:
> (defun org-dvipng-color (attr)
> "Return an rgb color specification for dvipng."
> (apply 'format "rgb %s %s %s"
> (mapcar 'org-normalize-color
> (color-values (face-attribute 'default attr nil)))))
> Xemacs complains about color-values and of course face-attribute.
It seems that GNU emacs color-values, corresponds to Xemacs
x-color-values, but how should be
You could start with
(face-property 'default (intern (substring (symbol-name attr) 1)))
but then there's more to do, because an XEmacs color is a specifier,
not a color name.
So then you want
(color-rgb-components
(face-property 'default (intern (substring (symbol-name attr) 1))))
(Ten minutes with the manual, while cooking risotto.)
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta