Bug: get-face-font: Xemacs21.5.29: org-preview-latex-fragment [7.5]
Julian Bradfield
jcb+xeb at jcbradfield.org
Sat Jan 28 14:28:56 EST 2012
On 2012-01-28, Uwe Brauer <oub at mat.ucm.es> wrote:
>>> On Sat, 28 Jan 2012 14:59:23 +0100, Uwe Brauer <oub at 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.)
More information about the XEmacs-Beta
mailing list