On Fri, 27 Jan 2012 23:08:09 +0100
Uwe Brauer <oub(a)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
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta