[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Wrong type argument: font, unspecified
From: |
Stefan Monnier |
Subject: |
Wrong type argument: font, unspecified |
Date: |
Fri, 23 May 2008 14:00:02 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
If I start Emacs as follows:
emacs -Q --eval '(custom-set-faces (quote (menu ((t :weight bold)))))'
I get the above error message.
It comes from xfaces.c:x_update_menu_appearance
if (face->font
&& (!UNSPECIFIEDP (LFACE_FAMILY (lface))
|| !UNSPECIFIEDP (LFACE_SWIDTH (lface))
|| !UNSPECIFIEDP (LFACE_WEIGHT (lface))
|| !UNSPECIFIEDP (LFACE_SLANT (lface))
|| !UNSPECIFIEDP (LFACE_HEIGHT (lface))))
{
Lisp_Object xlfd = Ffont_xlfd_name (LFACE_FONT (lface), Qnil);
where LFACE_FONT(lface) is the symbol `unspecified', so Ffont_xlfd_name
signals the above error.
Stefan
PS: I notice also that bytecode.c has code that doesn't compile any
more. The chunk below complains "dereferencing incomplete pointer".
Maybe we should just throw away this CHECK_FRAME_FONT.
#ifdef CHECK_FRAME_FONT
{
struct frame *f = SELECTED_FRAME ();
if (FRAME_X_P (f)
&& FRAME_FONT (f)->direction != 0
&& FRAME_FONT (f)->direction != 1)
abort ();
}
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Wrong type argument: font, unspecified,
Stefan Monnier <=