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#67628: Emacs 29.1: (x-open-connection (getenv "DISPLAY")) gets "Display :0.0 does not exist" error Date: Wed, 06 Dec 2023 15:10:04 +0200 Message-ID: <83a5qn4gur.fsf@gnu.org> References: <20231204193138.3bb398b8@Elitebook> <83il5d683k.fsf@gnu.org> <20231205004405.3fc7190e@Elitebook> <83a5qo6dce.fsf@gnu.org> <87edg0omfn.fsf@yahoo.com> <83sf4f4kcq.fsf@gnu.org> <875y1bo71r.fsf@yahoo.com> <83fs0f4ibi.fsf@gnu.org> <87wmtrmrk1.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22692"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mahlamytsike@gmail.com, 67628@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 06 14:11:04 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 1rArg7-0005gi-RH for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Dec 2023 14:11:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rArfy-0003L7-8S; Wed, 06 Dec 2023 08:10:54 -0500 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 1rArfv-0003Ii-1V for bug-gnu-emacs@gnu.org; Wed, 06 Dec 2023 08:10:51 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rArfu-0005bw-OD for bug-gnu-emacs@gnu.org; Wed, 06 Dec 2023 08:10:50 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rArg5-0002QF-VM for bug-gnu-emacs@gnu.org; Wed, 06 Dec 2023 08:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Dec 2023 13:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67628 X-GNU-PR-Package: emacs Original-Received: via spool by 67628-submit@debbugs.gnu.org id=B67628.17018682169241 (code B ref 67628); Wed, 06 Dec 2023 13:11:01 +0000 Original-Received: (at 67628) by debbugs.gnu.org; 6 Dec 2023 13:10:16 +0000 Original-Received: from localhost ([127.0.0.1]:39073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rArfM-0002Oz-7X for submit@debbugs.gnu.org; Wed, 06 Dec 2023 08:10:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rArfI-0002Oe-9N for 67628@debbugs.gnu.org; Wed, 06 Dec 2023 08:10:15 -0500 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 1rArf1-0005K8-3D; Wed, 06 Dec 2023 08:09:55 -0500 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=e8UjlVKOvD1u0RbcnYMV7+NQ5GCp61N15XNM23ouPy8=; b=KDNQmc+k9DfC SpjezRWsB40Wv4x/w/ub/oCd2Q2pHQnegH4D5MOD2EujIfgj6CiafR1IL7DzrXho6SjNFCmQZUy47 Az7QhEnT6/3mYeP8dmOmL+ztaX3EtObxKmEqnBjnaNWeEAH9VOIeS+UTRa5Gt3t+nQonFZN4BEeBm z911TujpF0m4jycjbLmNaz6d2uP+uEjiN71on58nlFBx4qdahioZVcj8a+QZmA0IhqBmQAsmu9Li7 duviCbsbWrqL9VRjed4t5a/tjYzeQ3Z/ZpSwVCSVhufApmZKtBUJ3AhlNvW5PWjtEniL2DnFvF/6U UKLVxPgn4AZKJfMx3NoQGg==; In-Reply-To: <87wmtrmrk1.fsf@yahoo.com> (message from Po Lu on Wed, 06 Dec 2023 20:41:34 +0800) 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:275599 Archived-At: > From: Po Lu > Cc: mahlamytsike@gmail.com, 67628@debbugs.gnu.org > Date: Wed, 06 Dec 2023 20:41:34 +0800 > > Eli Zaretskii writes: > > > Or why would the dynamic-setting machinery call get-device-terminal > > for a display that has no frames? > > Because events are sent when configuration changes take place on each > display, rather than on each frame. Although there aren't any frames, a > configuration change is detected and duly reported, after which the > dynamic-setting command bound to the event generated is called, and... So the bug is in the command bound to the event, in that it assumes there are frames on each display? IOW, I would expect such a command to do nothing about a display where we have no Emacs frames.