From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63031: x-list-fonts in config throws error on wayland Date: Sun, 23 Apr 2023 18:55:01 +0300 Message-ID: <837cu2zj8q.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3478"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63031@debbugs.gnu.org To: binarydigitz01 Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 23 17:55:22 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pqc3e-0000jB-JY for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Apr 2023 17:55:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqc3M-0002VD-QE; Sun, 23 Apr 2023 11:55:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqc3L-0002Uq-5n for bug-gnu-emacs@gnu.org; Sun, 23 Apr 2023 11:55:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pqc3K-0000hu-UA for bug-gnu-emacs@gnu.org; Sun, 23 Apr 2023 11:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pqc3K-0004LO-D0 for bug-gnu-emacs@gnu.org; Sun, 23 Apr 2023 11:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Apr 2023 15:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63031 X-GNU-PR-Package: emacs Original-Received: via spool by 63031-submit@debbugs.gnu.org id=B63031.168226528916629 (code B ref 63031); Sun, 23 Apr 2023 15:55:02 +0000 Original-Received: (at 63031) by debbugs.gnu.org; 23 Apr 2023 15:54:49 +0000 Original-Received: from localhost ([127.0.0.1]:46788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pqc36-0004K9-S3 for submit@debbugs.gnu.org; Sun, 23 Apr 2023 11:54:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pqc35-0004Jv-HY for 63031@debbugs.gnu.org; Sun, 23 Apr 2023 11:54:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqc2x-0000dE-Qn; Sun, 23 Apr 2023 11:54:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=SoAqbjITh1b6H3fBVI84toPGGGx546ECtHcMZ8c17Pk=; b=T8NutCkRC1J9 aK48nPfPx3Ycf+LETaDYTjWFP01ldI5mThokkT+gnu5xEZEwPivwVc9JIVlWaWyvsL35RdywwHV9K 0EBHrdtoZI4x4lVHcPzFv4mFXxr5RmZxnGiiA/qwf+D7FHildRKzSnO7vgUq5Do0a8RrzIEl2Hqeh d9vW/W/d2q96ExFtMB7bwEtou8xy2Iu01gUdFEQvAQICNC2ZAgy0GjpctFf/PZ2+T8X5kqiloFrAl t5jYynmzAkLKjDo7HXZd0OFoHwjkW5f4A/2owjxI470wSiybAGPENeP37aEVP/C7wMyb3FTJCib8O 21ekaxK0mrvWngNnH0JTVA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqc2x-0001VR-5y; Sun, 23 Apr 2023 11:54:39 -0400 In-Reply-To: (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260526 Archived-At: > Date: Sun, 23 Apr 2023 14:37:12 +0000 > From: binarydigitz01 via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > 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.