From: Eli Zaretskii Date: Fri, 30 Jul 2021 18:51:59 +0000 (+0300) Subject: * src/fontset.c (check_fontset_name): Fix last change. X-Git-Tag: emacs-28.0.90~1640 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d9bc7dbefd88995d04b9843f521d82118265fecf;p=emacs.git * src/fontset.c (check_fontset_name): Fix last change. --- diff --git a/src/fontset.c b/src/fontset.c index 52c7e381e15..d2d428da2ee 100644 --- a/src/fontset.c +++ b/src/fontset.c @@ -1356,7 +1356,7 @@ check_fontset_name (Lisp_Object name, Lisp_Object *frame) int id; struct frame *f = decode_live_frame (*frame); - if (!FRAME_WINDOW_P (f)) + if (!FRAME_WINDOW_P (f) && !FRAME_INITIAL_P (f)) error ("Can't use fontsets in non-GUI frames"); XSETFRAME (*frame, f);