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

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

bug#63031: x-list-fonts in config throws error on wayland


From: Eli Zaretskii
Subject: bug#63031: x-list-fonts in config throws error on wayland
Date: Sun, 23 Apr 2023 18:55:01 +0300

> Date: Sun, 23 Apr 2023 14:37:12 +0000
> From:  binarydigitz01 via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> I am using x-list-fonts function in my config on emacs master branch. When I 
> try starting the emacs daemon from the terminal as "emacs --daemon 
> --debug-init" I get the following stack trace:
> 
> 
> ```
> Debugger entered--Lisp error: (error "Window system is not in use or not 
> initialized")
>   x-list-fonts("ETBembo")
>   (cond ((x-list-fonts "ETBembo") '(:font "ETBembo")))

This is the expected behavior in a daemon session of Emacs: the daemon
doesn't initialize the window-system (i.e. the GUI aspects of Emacs)
until the first GUI frame is created.

So if you want this initialization to work in daemon sessions, what
you need is to move it to server-after-make-frame-hook.





reply via email to

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