unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: binarydigitz01 <binarydigitz01@proton.me>
Cc: 63031@debbugs.gnu.org
Subject: bug#63031: x-list-fonts in config throws error on wayland
Date: Sun, 23 Apr 2023 18:55:01 +0300	[thread overview]
Message-ID: <837cu2zj8q.fsf@gnu.org> (raw)
In-Reply-To: <wJq0fZS-Gk3-XEGQ_1FnffRcq92yuhJqOej_1vtGFqLTgL6a7rEoLeyHeyuU6xRgT6BMasCFcQDh8M36JOeZkDzMFJ7ETnFE2i6HcV8o9f8=@proton.me> (bug-gnu-emacs@gnu.org)

> 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.





  parent reply	other threads:[~2023-04-23 15:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-23 14:37 bug#63031: x-list-fonts in config throws error on wayland binarydigitz01 via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-23 14:44 ` Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-23 15:02 ` binarydigitz01 via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-23 15:20   ` Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-23 15:55 ` Eli Zaretskii [this message]
     [not found]   ` <1YOQm0f_WD_ShBPeWTxWfqowwL-OhWW7pbd4Epj5Wvj5X3Bpme27kYyJ9LIiiE3SlSZLR9WvL3QqVHd75EShMNB6kB1BUB2uf9t7-S_4lw0=@proton.me>
2023-04-23 18:24     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=837cu2zj8q.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=63031@debbugs.gnu.org \
    --cc=binarydigitz01@proton.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).