Bug: get-face-font: Xemacs21.5.29: org-preview-latex-fragment [7.5]
Sean MacLennan
seanm at seanm.ca
Fri Jan 27 18:48:43 EST 2012
On Fri, 27 Jan 2012 23:08:09 +0100
Uwe Brauer <oub at mat.ucm.es> wrote:
> Julian Bradfield wrote:
> > Uwe:
> >> (if (featurep 'xemacs)
> >> ; (font-height (get-face-font 'default))
> >> (font-height (face-font 'default))
> >> (face-attribute 'default :height nil))
> >> and face-attribute is not known to be defined.
> >
> > Of course not. It's the code that's called when it's not XEmacs.
> > If XEmacs had it, the conditional wouldn't be needed.
> > That's not a problem.
>
> I am very much confused. this code is called *when it is* Xemacs.
> and when I call it from Xemacs I precisely get the problem that
> face-attribute is not known
Only the first line should be called for XEmacs; it is an if/else, not
a straight if.
So for XEmacs it calls (font-height (face-font 'default)) and for GNU
Emacs it calls (face-attribute 'default :height nil).
You may get a compile error that face-attribute is not know, but you
should not get a runtime error.
Cheers,
Sean
More information about the XEmacs-Beta
mailing list