src/font.c (Fframe_font_cache): Fix last change.
2014-03-03 Eli Zaretskii <eliz@gnu.org>
+ * font.c (Fframe_font_cache): Fix last change. (Bug#16930)
+
* gmalloc.c (aligned_alloc): Fix adjustment of size of the
allocated buffer due to alignment.
(freehook): If the block to be freed was allocated by
If FRAME is omitted or nil, use the selected frame. */)
(Lisp_Object frame)
{
- return FRAME_DISPLAY_INFO (decode_live_frame (frame))->name_list_element;
+#ifdef HAVE_WINDOW_SYSTEM
+ struct frame *f = decode_live_frame (frame);
+
+ if (FRAME_WINDOW_P (f))
+ return FRAME_DISPLAY_INFO (f)->name_list_element;
+ else
+#endif
+ return Qnil;
}
#endif /* FONT_DEBUG */