bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#49782: 28.0.50; set-fontset-font crashes in init (server)


From: Benjamin Riefenstahl
Subject: bug#49782: 28.0.50; set-fontset-font crashes in init (server)
Date: Fri, 30 Jul 2021 20:35:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Eli Zaretskii writes:
> Does the patch below prevent the crash?
>
> diff --git a/src/fontset.c b/src/fontset.c
> index 332be6c..52c7e38 100644
> --- a/src/fontset.c
> +++ b/src/fontset.c
> @@ -1356,6 +1356,9 @@ check_fontset_name (Lisp_Object name, Lisp_Object 
> *frame)
>    int id;
>    struct frame *f = decode_live_frame (*frame);
>  
> +  if (!FRAME_WINDOW_P (f))
> +    error ("Can't use fontsets in non-GUI frames");
> +
>    XSETFRAME (*frame, f);
>  
>    if (EQ (name, Qt))

It looks like I can not start emacs directly (without emacsclient) at
all now:

  $ HOME=/tmp emacs -Q
  Can’t use fontsets in non-GUI frames
  $

Hm. 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]