Received: (at 67628) by debbugs.gnu.org; 6 Dec 2023 12:22:08 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 06 07:22:08 2023 Received: from localhost ([127.0.0.1]:39003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rAqum-0006v0-2x for submit <at> debbugs.gnu.org; Wed, 06 Dec 2023 07:22:08 -0500 Received: from sonic311-23.consmr.mail.ne1.yahoo.com ([66.163.188.204]:41072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <luangruo@HIDDEN>) id 1rAquj-0006u0-LU for 67628 <at> debbugs.gnu.org; Wed, 06 Dec 2023 07:22:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1701865308; bh=5UdRx6L43CGj7uRjj8mI6eCZk0nRnPKpatmBHBToRsw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=mN42sg3WTJnMwcrhUesgQdwwyybByL//tDf70m1gb7O+suaVbnaqoAUdgpSYRZoCWnT9KlvW7AD4xIqoB8U8alYgOIsMufCfMgO1JTpMnv1tJtwAYNBGKIMrPqnuokYQVK4AHJ+rqbUVFHf5lRCZe2oMIDV9wRO1dU4LKfAAAdqYlZAOwMEqeZiQtBtVyrzmfVDzhbpuA/4yeCDFBgdlFhF4HDFzg6LW27pxmxUVGsL+/buDsXIaaH9yH4RAGYP+Vy7hU6huuOqURhHeRsiZvc3tKuLRgzMSpCM4/tynY1k9HRfGpNFeIBdiJOxYPalRPpF4iQhm+S4y85AkaLkekg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1701865308; bh=gTODtIX14wvD87E+Lp3fjvS8eFCXfYx/Za0/Od3a9VV=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=hrzO5oYrPfldF5SBycX2wvH5fvypSwnt+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v1DqTY1rIT6oFvwIIzVCn6cseyLaHDj3c0sHpIUwfWo36EsvD _ahuFZtg5BZZ848dxti4mdLc2zth9a.oMbpCHqz1r1Fn1P5UgjCwOuFjk0p01tC2e9z0K_E0HOfb qlj3AW3a2IouGLPaR49u20UWUxFpP1UQnpOBFDlRBmWD6RT4OBkneWzQP2NOY5OPjECBSfkkG8cg WMqarR2SPQ0HvJRlWncC5hydGKfwLhtUS4w._iRowmAYKNPgBL1vle6ZyEjpWLa6rTL7JgJEVmLc PR52cRMoGqM9sjscnR04HyOjTiuDRpm79FEXjbPLEgnR7EL9ZrQL2ojIlNIV1rGDEOEvwRlEpT2t ag2nZ9lh7tTXHRsbpnQ7DvMB01Ee_ODOrpdGT5mA37zFd._OF33inBg9PLpOUeF_OMUlwn9zG8Ol TB_HRBLXIJKS3asZMrhKVaoqNcfzHPzBEpmw5oDjpW6xVQX6YUL8Hnkk3OwLbdPnw X-Sonic-MF: <luangruo@HIDDEN> X-Sonic-ID: 9c8dfaf3-0cd3-4e12-9546-20ac618c68ba Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Wed, 6 Dec 2023 12:21:48 +0000 Received: by hermes--production-sg3-f6b777bf6-762ld (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 0479a84eb7d4d86d3420e0d065bf5f8c; Wed, 06 Dec 2023 12:21:44 +0000 (UTC) From: Po Lu <luangruo@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#67628: Emacs 29.1: (x-open-connection (getenv "DISPLAY")) gets "Display :0.0 does not exist" error In-Reply-To: <83sf4f4kcq.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 06 Dec 2023 13:54:29 +0200") References: <20231204193138.3bb398b8@Elitebook> <83il5d683k.fsf@HIDDEN> <20231205004405.3fc7190e@Elitebook> <83a5qo6dce.fsf@HIDDEN> <87edg0omfn.fsf@HIDDEN> <83sf4f4kcq.fsf@HIDDEN> Date: Wed, 06 Dec 2023 20:21:36 +0800 Message-ID: <875y1bo71r.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.21943 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1837 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 67628 Cc: mahlamytsike@HIDDEN, 67628 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Eli Zaretskii <eliz@HIDDEN> writes: >> From: Po Lu <luangruo@HIDDEN> >> Cc: Herman <mahlamytsike@HIDDEN>, 67628 <at> debbugs.gnu.org >> Date: Tue, 05 Dec 2023 20:37:00 +0800 >> >> Eli Zaretskii <eliz@HIDDEN> writes: >> >> >> If in 29.1 now >> >> $ emacs --daemon -Q >> >> $ emacsclient -e "(setq debug-on-error t)" >> >> then >> >> $ emacsclient -e "(make-frame-on-display (getenv \"DISPLAY\"))" >> >> does not give an error, i.e. the display is found >> >> >> >> but if >> >> $ emacs --daemon -Q >> >> $ emacsclient -e "(setq debug-on-error t)" >> >> then >> >> $ emacsclient -e "(x-open-connection (getenv \"DISPLAY\"))" >> >> gives an error, i.e. the display does not exist. >> > >> > Po Lu, any ideas or suggestions? >> >> The display is opened successfully, but the next event to arrive >> activates the dynamic-setting machinery that calls get-device-terminal, >> which signals an error in response to there being no frames on that >> display at the time. > > So you are saying that this is an issue with the fine timing of when > the event arrives? And if it arrived a bit later, it would have been > processed correctly? No, see below. >> The sound fix is for get-device-terminal to search for the device >> provided within x_display_list instead of the list of live frames. > > I'm not sure this is the correct fix. If a frame is not yet in the > list of live frames exposed to Lisp, it might mean the frame is not > yet fully set up, and some code running off the dynamic-setting > machinery could similarly fail, right? > > Wouldn't it be better to delay the processing of this event until the > frame is fully set? There's no frame being created halfway in this scenario. Rather, a display connection is opened _without_ creating any frames, from which a dynamic-setting event subsequently arrives. Thanks.
bug-gnu-emacs@HIDDEN
:bug#67628
; Package emacs
.
Full text available.Received: (at 67628) by debbugs.gnu.org; 6 Dec 2023 11:54:43 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 06 06:54:43 2023 Received: from localhost ([127.0.0.1]:38967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rAqUF-0006FV-EW for submit <at> debbugs.gnu.org; Wed, 06 Dec 2023 06:54:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1rAqUE-0006FG-5Z for 67628 <at> debbugs.gnu.org; Wed, 06 Dec 2023 06:54:42 -0500 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 <eliz@HIDDEN>) id 1rAqTw-0007nz-LK; Wed, 06 Dec 2023 06:54:24 -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=QtjO3xvCQS35LhFWUsvjE8/mKEK2DLQ4mscZ4MuamYY=; b=UHJFtKzwCxY2 erI00mih764bovMHAXaEJHb3xpsXMWtZ0iKVN7Ii3f6KlaFLaIsh+bZy6M5W0ptEByOwPElDDIO2R UiLusahNKAZPxNbLNxzVyCU5g8uaD2g73iyCW6Cq49C0wGF97upsszeAjIS0uIB6oCjvm7eBfccmg R47aFGjRqKn/MSviOIZypK1ZEWilpMDFRaXZsySHCVYWqKiwr6CU9cKzRxsRYicFew7Ugps0rcPk7 AC97FsDW90PM5+/yqycPEalUtqIO3fN5T6mdXg7J11tAjA4VQ7UtimNFqAup5D0RJL6P21gXnRTVw xr9T8zt8+4Lzh4JtZNcVKQ==; Date: Wed, 06 Dec 2023 13:54:29 +0200 Message-Id: <83sf4f4kcq.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Po Lu <luangruo@HIDDEN> In-Reply-To: <87edg0omfn.fsf@HIDDEN> (message from Po Lu on Tue, 05 Dec 2023 20:37:00 +0800) Subject: Re: bug#67628: Emacs 29.1: (x-open-connection (getenv "DISPLAY")) gets "Display :0.0 does not exist" error References: <20231204193138.3bb398b8@Elitebook> <83il5d683k.fsf@HIDDEN> <20231205004405.3fc7190e@Elitebook> <83a5qo6dce.fsf@HIDDEN> <87edg0omfn.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 67628 Cc: mahlamytsike@HIDDEN, 67628 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Po Lu <luangruo@HIDDEN> > Cc: Herman <mahlamytsike@HIDDEN>, 67628 <at> debbugs.gnu.org > Date: Tue, 05 Dec 2023 20:37:00 +0800 > > Eli Zaretskii <eliz@HIDDEN> writes: > > >> If in 29.1 now > >> $ emacs --daemon -Q > >> $ emacsclient -e "(setq debug-on-error t)" > >> then > >> $ emacsclient -e "(make-frame-on-display (getenv \"DISPLAY\"))" > >> does not give an error, i.e. the display is found > >> > >> but if > >> $ emacs --daemon -Q > >> $ emacsclient -e "(setq debug-on-error t)" > >> then > >> $ emacsclient -e "(x-open-connection (getenv \"DISPLAY\"))" > >> gives an error, i.e. the display does not exist. > > > > Po Lu, any ideas or suggestions? > > The display is opened successfully, but the next event to arrive > activates the dynamic-setting machinery that calls get-device-terminal, > which signals an error in response to there being no frames on that > display at the time. So you are saying that this is an issue with the fine timing of when the event arrives? And if it arrived a bit later, it would have been processed correctly? > The sound fix is for get-device-terminal to search for the device > provided within x_display_list instead of the list of live frames. I'm not sure this is the correct fix. If a frame is not yet in the list of live frames exposed to Lisp, it might mean the frame is not yet fully set up, and some code running off the dynamic-setting machinery could similarly fail, right? Wouldn't it be better to delay the processing of this event until the frame is fully set?
bug-gnu-emacs@HIDDEN
:bug#67628
; Package emacs
.
Full text available.Received: (at 67628) by debbugs.gnu.org; 5 Dec 2023 12:37:32 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 05 07:37:32 2023 Received: from localhost ([127.0.0.1]:36742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rAUg8-0002Ir-2m for submit <at> debbugs.gnu.org; Tue, 05 Dec 2023 07:37:32 -0500 Received: from sonic314-20.consmr.mail.ne1.yahoo.com ([66.163.189.146]:45310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <luangruo@HIDDEN>) id 1rAUg6-0002Ib-3z for 67628 <at> debbugs.gnu.org; Tue, 05 Dec 2023 07:37:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1701779833; bh=8+z3pOqcBYWqKt/uths04jQgOVrEixieruplmsCpyhI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=bI3j6bNS8n/6/RsLWuAk4j21aLECVrrs2vyQWQp1VO6e07NcrBlCClnDtOZV2NiSJ10JKuQ+ghF+iDDIxcj5OUYDHzFWy0PEeMicPRsxq/NcmW6BFViyvV8Q2MdwZ+k2oEIxCHczGYAhNX87jdkoLHZ4IhT+zc9MHu5pvqg7JUeWJWMO9IvxuQy2l98PYPWSjWaNZMIlFULX0g0L6kxjuBuD6CFJA+bpNPEGaGaSAxPEip9ixx9OpIKR2WfJLcOdVHpKKcRv+1YCmfcXjE+NqTXKJk2++THUlB+yg3U5WQ1ZJNt4MUIcuypJvBkVP56Pz50/ILRRM48qieL6liSSvA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1701779833; bh=2kqaOq+Schuop43wYRDlAdiyGyN3Ii4Nb7CcogyQFoD=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=UYANzSOa2TBCIBoyAK4VMbJEkdCpul+4bKQXh8GyKir5FzOLN+dfM2rfY/W2mlyQD5xDVrRbu+1NVksoRapc1NF9gIsdftc2rVFWRpg3V5OREaE7v2fDCs2QUN1fAL2dZfsewgVDKseHU/drfrInitF9inPgHPoKWpUiXQGv1gxR88V7Tdl3IyHp6HKCGEwXOeVkAiArNu6ZVxBuP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vEerjeDCw5Lr_ddGpE7_Jlmnfd3fbnqsAtFDYS M9PZDnKYBrV8vBr5z7lAhgPMHgs7mlwfyIaqmouNr5zhgAIlEeslchi4gbUcKe8egBcRj_L609gS OINZZjnTCJIGA3.sgtRP4p96J_4q8.FqZDJjtLH3TppZvIkedqGAmSDHBCCybBoaU1nj0h4I7MYY opa7f64p.lP1.gbQXUMtb71a.sNK59Z3ASzXnwLF14VT_XCxk3II_T2X6c9L.X5_OB46pdHQjoiu xVUc8CBUCsYEecs7mS2707xm0plkgMsuL3KUICN4CcchgRBvOBko0VqSyVOiH2Fd.vA-- X-Sonic-MF: <luangruo@HIDDEN> X-Sonic-ID: fdb9173c-b76e-41a8-b312-5a92b070331e Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Tue, 5 Dec 2023 12:37:13 +0000 Received: by hermes--production-sg3-599557b48c-hbm6x (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 1259ead04e09c548d26e85ec13b3ea04; Tue, 05 Dec 2023 12:37:09 +0000 (UTC) From: Po Lu <luangruo@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#67628: Emacs 29.1: (x-open-connection (getenv "DISPLAY")) gets "Display :0.0 does not exist" error In-Reply-To: <83a5qo6dce.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 05 Dec 2023 14:30:41 +0200") References: <20231204193138.3bb398b8@Elitebook> <83il5d683k.fsf@HIDDEN> <20231205004405.3fc7190e@Elitebook> <83a5qo6dce.fsf@HIDDEN> Date: Tue, 05 Dec 2023 20:37:00 +0800 Message-ID: <87edg0omfn.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.21943 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 2347 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 67628 Cc: Herman <mahlamytsike@HIDDEN>, 67628 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Eli Zaretskii <eliz@HIDDEN> writes: >> Date: Tue, 5 Dec 2023 00:44:05 +0200 >> From: Herman <mahlamytsike@HIDDEN> >> Cc: 67628 <at> debbugs.gnu.org >> >> On Mon, 04 Dec 2023 22:11:43 +0200 >> Eli Zaretskii <eliz@HIDDEN> wrote: >> >> > > Date: Mon, 4 Dec 2023 19:31:38 +0200 >> > > From: Herman <mahlamytsike@HIDDEN> >> > > >> > > 'x-create-frame' succeeds, but 'x-open-connection' fails with same >> > > display argument. >> > > >> > > This error "Display :0.0 does not exist" happens only, when >> > > variable 'debug-on-error' is non-nil. When 'debug-on-error' is nil, >> > > the error is not present. I.e. it works on the principle - you get >> > > what you are looking for. >> > >> > It could be that the code catches the error and proceeds, but your >> > setting debug-on-error non-nil prevents that. >> > >> > Why do you need to set debug-on-error in that case? >> >> At first I also thought that it is actually normal to catch an error when debug is enabled. I had debug turned on to look for other errors. >> >> One argument could be that in version 28.2 debug did not catch such an error when debug is enabled. Version 29.1 behaves differently. >> >> Another argument is that in the Elisp manual, in the Multiple >> terminals chapter, it is written that: "Normally, Emacs Lisp >> programs need not call 'x-open-connection' function, as >> 'make-frame-on-display' calls it automatically. The only reason for >> calling it is to check whether communication can be established with >> a given X display." >> If in 29.1 now >> $ emacs --daemon -Q >> $ emacsclient -e "(setq debug-on-error t)" >> then >> $ emacsclient -e "(make-frame-on-display (getenv \"DISPLAY\"))" >> does not give an error, i.e. the display is found >> >> but if >> $ emacs --daemon -Q >> $ emacsclient -e "(setq debug-on-error t)" >> then >> $ emacsclient -e "(x-open-connection (getenv \"DISPLAY\"))" >> gives an error, i.e. the display does not exist. > > Po Lu, any ideas or suggestions? The display is opened successfully, but the next event to arrive activates the dynamic-setting machinery that calls get-device-terminal, which signals an error in response to there being no frames on that display at the time. The sound fix is for get-device-terminal to search for the device provided within x_display_list instead of the list of live frames.
bug-gnu-emacs@HIDDEN
:bug#67628
; Package emacs
.
Full text available.Received: (at 67628) by debbugs.gnu.org; 5 Dec 2023 12:31:24 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 05 07:31:24 2023 Received: from localhost ([127.0.0.1]:36717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rAUaB-00028p-P9 for submit <at> debbugs.gnu.org; Tue, 05 Dec 2023 07:31:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53186) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1rAUa6-00028W-2D for 67628 <at> debbugs.gnu.org; Tue, 05 Dec 2023 07:31:22 -0500 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 <eliz@HIDDEN>) id 1rAUZp-0006QT-2H; Tue, 05 Dec 2023 07:31:01 -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=dtwNjPhsr7yjc1UuvJfP7v2YJF5blv9T3YXQBMCS8ls=; b=i4hd57kwZaCc rQs59zzMTNgjqOlYbNVEsOhGJKu42nVsgjfNQEx9bAFnC9n6VvN7gRpZYmEc+QNaNx1F2o4QbeIBQ KwrX1Gk9NAKREwSNgIEF5eARufqmMoDF5f5aey1s09IiO5V9rOO4570CCKBXOZkz+2DZDMQMiUTll AQiT7bXo7fycdZ/oZUNhTlAOld/yy6W9Q7D7hN2mk1xC/cWiF+VisPSu24puztpCbLSQGOCEKkyd9 f0Rc//B8VO1Xf0iHv/U/7+b6cLtyToUULDjyN9Wg3nP8cpXYjlhQ7PrshRac9Ibd/5uxF0xRcfo2K x3XEEvCozVrBMHBW7w4fZA==; Date: Tue, 05 Dec 2023 14:30:41 +0200 Message-Id: <83a5qo6dce.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Herman <mahlamytsike@HIDDEN>, Po Lu <luangruo@HIDDEN> In-Reply-To: <20231205004405.3fc7190e@Elitebook> (message from Herman on Tue, 5 Dec 2023 00:44:05 +0200) Subject: Re: bug#67628: Emacs 29.1: (x-open-connection (getenv "DISPLAY")) gets "Display :0.0 does not exist" error References: <20231204193138.3bb398b8@Elitebook> <83il5d683k.fsf@HIDDEN> <20231205004405.3fc7190e@Elitebook> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 67628 Cc: 67628 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Tue, 5 Dec 2023 00:44:05 +0200 > From: Herman <mahlamytsike@HIDDEN> > Cc: 67628 <at> debbugs.gnu.org > > On Mon, 04 Dec 2023 22:11:43 +0200 > Eli Zaretskii <eliz@HIDDEN> wrote: > > > > Date: Mon, 4 Dec 2023 19:31:38 +0200 > > > From: Herman <mahlamytsike@HIDDEN> > > > > > > 'x-create-frame' succeeds, but 'x-open-connection' fails with same > > > display argument. > > > > > > This error "Display :0.0 does not exist" happens only, when > > > variable 'debug-on-error' is non-nil. When 'debug-on-error' is nil, > > > the error is not present. I.e. it works on the principle - you get > > > what you are looking for. > > > > It could be that the code catches the error and proceeds, but your > > setting debug-on-error non-nil prevents that. > > > > Why do you need to set debug-on-error in that case? > > At first I also thought that it is actually normal to catch an error when debug is enabled. I had debug turned on to look for other errors. > > One argument could be that in version 28.2 debug did not catch such an error when debug is enabled. Version 29.1 behaves differently. > > Another argument is that in the Elisp manual, in the Multiple terminals chapter, it is written that: "Normally, Emacs Lisp programs need not call 'x-open-connection' function, as 'make-frame-on-display' calls it automatically. The only reason for calling it is to check whether communication can be established with a given X display." > If in 29.1 now > $ emacs --daemon -Q > $ emacsclient -e "(setq debug-on-error t)" > then > $ emacsclient -e "(make-frame-on-display (getenv \"DISPLAY\"))" > does not give an error, i.e. the display is found > > but if > $ emacs --daemon -Q > $ emacsclient -e "(setq debug-on-error t)" > then > $ emacsclient -e "(x-open-connection (getenv \"DISPLAY\"))" > gives an error, i.e. the display does not exist. Po Lu, any ideas or suggestions?
bug-gnu-emacs@HIDDEN
:bug#67628
; Package emacs
.
Full text available.Received: (at 67628) by debbugs.gnu.org; 5 Dec 2023 05:01:55 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 05 00:01:55 2023 Received: from localhost ([127.0.0.1]:36275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rANZ8-0001Pf-He for submit <at> debbugs.gnu.org; Tue, 05 Dec 2023 00:01:55 -0500 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:58721) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mahlamytsike@HIDDEN>) id 1rAHfu-0007xh-UK for 67628 <at> debbugs.gnu.org; Mon, 04 Dec 2023 17:44:27 -0500 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-50bfd8d5c77so1309163e87.1 for <67628 <at> debbugs.gnu.org>; Mon, 04 Dec 2023 14:44:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701729850; x=1702334650; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=bqx7FclY0w/em+UuJf9r9D6Toeat3WczhV/MJQxZG7A=; b=EUkdueOvRggZBZ0XHCBPVSHgd6g80W/3DCzE/ATA0UflOPCWQO8hNymulhGTePGKTp WEVUkLlsAYluUgW7pFv/QQVaNjYMI4qrF0HYZuNwnAGSBUd0BoMJilR9oLiTxfspP/pJ a92hDSreDSUGtg3UEsNtZ3YGwh7lJCx7IgN4IjVp8GnX/tr4CKajI6MbiMK0htYRpnXi IVCNEZFm7ZlXhqUReZe3FAd1CziP62SsZ3/WdFb9VQCZ4VmMqLmSqTz0We406uI/x5/p /KexGnBrurvL7uu8ZmOqOjcFPpsGi/QzIo1ugBlVsWeQfQF7SJmvfLDsSqNM4XX5uu1x WplA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701729850; x=1702334650; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bqx7FclY0w/em+UuJf9r9D6Toeat3WczhV/MJQxZG7A=; b=VdsRu10n4v2CQpocZg9j5l2yZMTTXl3AZsM2MoBn6yWifk9dGgc540pRtMuIOS0g+U WijtHPIunt7EDxVPxNFAdG41mYPaaBwZWKuI9Lu/E+e0qBSKmYG0foJjCJXXvwYVM2Z7 klWsbByXmscRWO4J7cG612k1Ut5sZr7bH/sbfFkFOUe9DMd9zaiDlu1H9XlK+D6ElAa0 THWcH38yXoeot8bJYu0C6P7JeKCqk0CbVmWgyhWgOn/l+OuVRMjFq3ObjxMsfSSjOf/m Ba3RYFEDuzRLqbPB+lJssufrbOW71lNEIyhMlh9SVRcoQKKihbyjHt5TCj+PpSRSHtO7 My6A== X-Gm-Message-State: AOJu0Yx/Zml+bZmB0TbhMcJXEwzQmaezExkhZZLZAun++SGscjAxr4eF 9QNCiOPoCwlaNjctA0SiojRTDORA2Y2ajw== X-Google-Smtp-Source: AGHT+IERUTVIttLIQRVu1WvNzj0ZhT1F8a5o2oM1JfbnFUAORqiBV25IwNx+fX4P2eJ+c2/7c3Ti5Q== X-Received: by 2002:a05:6512:3a8a:b0:50b:bf92:dd7e with SMTP id q10-20020a0565123a8a00b0050bbf92dd7emr1830622lfu.35.1701729849888; Mon, 04 Dec 2023 14:44:09 -0800 (PST) Received: from Elitebook ([2a09:bac5:30ac:5f5::98:2d]) by smtp.gmail.com with ESMTPSA id x12-20020a056512046c00b0050bc56dd0acsm835645lfd.184.2023.12.04.14.44.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 14:44:09 -0800 (PST) Date: Tue, 5 Dec 2023 00:44:05 +0200 From: Herman <mahlamytsike@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#67628: Emacs 29.1: (x-open-connection (getenv "DISPLAY")) gets "Display :0.0 does not exist" error Message-ID: <20231205004405.3fc7190e@Elitebook> In-Reply-To: <83il5d683k.fsf@HIDDEN> References: <20231204193138.3bb398b8@Elitebook> <83il5d683k.fsf@HIDDEN> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 67628 X-Mailman-Approved-At: Tue, 05 Dec 2023 00:01:47 -0500 Cc: 67628 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Mon, 04 Dec 2023 22:11:43 +0200 Eli Zaretskii <eliz@HIDDEN> wrote: > > Date: Mon, 4 Dec 2023 19:31:38 +0200 > > From: Herman <mahlamytsike@HIDDEN> > > > > 'x-create-frame' succeeds, but 'x-open-connection' fails with same > > display argument. > > > > This error "Display :0.0 does not exist" happens only, when > > variable 'debug-on-error' is non-nil. When 'debug-on-error' is nil, > > the error is not present. I.e. it works on the principle - you get > > what you are looking for. > > It could be that the code catches the error and proceeds, but your > setting debug-on-error non-nil prevents that. > > Why do you need to set debug-on-error in that case? At first I also thought that it is actually normal to catch an error when debug is enabled. I had debug turned on to look for other errors. One argument could be that in version 28.2 debug did not catch such an error when debug is enabled. Version 29.1 behaves differently. Another argument is that in the Elisp manual, in the Multiple terminals chapter, it is written that: "Normally, Emacs Lisp programs need not call 'x-open-connection' function, as 'make-frame-on-display' calls it automatically. The only reason for calling it is to check whether communication can be established with a given X display." If in 29.1 now $ emacs --daemon -Q $ emacsclient -e "(setq debug-on-error t)" then $ emacsclient -e "(make-frame-on-display (getenv \"DISPLAY\"))" does not give an error, i.e. the display is found but if $ emacs --daemon -Q $ emacsclient -e "(setq debug-on-error t)" then $ emacsclient -e "(x-open-connection (getenv \"DISPLAY\"))" gives an error, i.e. the display does not exist.
bug-gnu-emacs@HIDDEN
:bug#67628
; Package emacs
.
Full text available.Received: (at 67628) by debbugs.gnu.org; 4 Dec 2023 20:11:56 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 04 15:11:56 2023 Received: from localhost ([127.0.0.1]:35823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rAFIK-00018G-Bz for submit <at> debbugs.gnu.org; Mon, 04 Dec 2023 15:11:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1rAFII-000183-Cl for 67628 <at> debbugs.gnu.org; Mon, 04 Dec 2023 15:11:54 -0500 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 <eliz@HIDDEN>) id 1rAFI2-0003sZ-9q; Mon, 04 Dec 2023 15:11:38 -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=/Ku6QZL9dXuAJ8tKMF6ZLtXZG69qRmGOnb9lGVXMBTY=; b=CzYlsVi86R19 2N9tP1xvdhGDNrSGYtCmcPmPbVYxrf7KGq1Es1k+/pfzYozHuvIDAr0rVNo2EtlKNA3nYgoSFNzF0 chxDwZ97W/0d/knRgAs6c631S0JsxlckVJsO172PaYZ1uj5aWDjdSUEdgxIP4jTwywzRdtr4kYTVT Z8+pKbejTuHzGhRKBBtOrer+m5eyATq33A1FChVigPK16tEx4VWBVFxMmyg4QxXAAp8OCVHH7SNwS Z4rYmA0IN3iQVEog2vWQ+707di5+XJgxa6vTtJAHGR6wxsju2faxG7H2R0y762H9cCnKjyzRrpu5b tXoQMrmnpimH2u+Azup3Mg==; Date: Mon, 04 Dec 2023 22:11:43 +0200 Message-Id: <83il5d683k.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Herman <mahlamytsike@HIDDEN> In-Reply-To: <20231204193138.3bb398b8@Elitebook> (message from Herman on Mon, 4 Dec 2023 19:31:38 +0200) Subject: Re: bug#67628: Emacs 29.1: (x-open-connection (getenv "DISPLAY")) gets "Display :0.0 does not exist" error References: <20231204193138.3bb398b8@Elitebook> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 67628 Cc: 67628 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Mon, 4 Dec 2023 19:31:38 +0200 > From: Herman <mahlamytsike@HIDDEN> > > 'x-create-frame' succeeds, but 'x-open-connection' fails with same display argument. > > This error "Display :0.0 does not exist" happens only, when variable 'debug-on-error' is non-nil. When 'debug-on-error' is nil, the error is not present. I.e. it works on the principle - you get what you are looking for. It could be that the code catches the error and proceeds, but your setting debug-on-error non-nil prevents that. Why do you need to set debug-on-error in that case?
bug-gnu-emacs@HIDDEN
:bug#67628
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 4 Dec 2023 20:01:09 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 04 15:01:09 2023 Received: from localhost ([127.0.0.1]:35798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rAF7t-0000rR-6L for submit <at> debbugs.gnu.org; Mon, 04 Dec 2023 15:01:09 -0500 Received: from lists.gnu.org ([2001:470:142::17]:53910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mahlamytsike@HIDDEN>) id 1rACne-00052P-3G for submit <at> debbugs.gnu.org; Mon, 04 Dec 2023 12:32:06 -0500 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 <mahlamytsike@HIDDEN>) id 1rACnM-0001H0-S8 for bug-gnu-emacs@HIDDEN; Mon, 04 Dec 2023 12:31:49 -0500 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <mahlamytsike@HIDDEN>) id 1rACnL-0006wF-5s for bug-gnu-emacs@HIDDEN; Mon, 04 Dec 2023 12:31:48 -0500 Received: by mail-io1-xd2d.google.com with SMTP id ca18e2360f4ac-7b37405f64aso192195639f.2 for <bug-gnu-emacs@HIDDEN>; Mon, 04 Dec 2023 09:31:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701711105; x=1702315905; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:subject:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=ItzsFS/R4rOmvnMSfwWLQk1ucY7wg3RekFiQn++NIag=; b=WOJMedH2TUoFN6IfJFMqGjmTrg25YPp3l3W6ZwKW+kF7i0+9Xl/P5M78uWvBa4VxdM 4Kgv2sTFjAVng77EC69ddDwwNGv/okmSDgiActIwsAHnS9N2XAWU0RS2w24T2550VzWj pR0ZAyRxKHT+8VGqKAutGBJQj1R8wThzVF2i3p7SouqAOoJr6w25F9ekiH3Bd7416xn0 SoxLxLq8C+FId6QgKl0Vez4B15cJTjsYL7iA/I9vuVvpLxLAEEtErCRFhNw3ZkbDq00Z IiZQnuhC604mAEmTIOn/jp4Gjeq0OfTaZG6MPzkSsLSmAx5V9jKRKlJnVSyzmUsUqxvt uy9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701711105; x=1702315905; h=content-transfer-encoding:mime-version:message-id:subject:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ItzsFS/R4rOmvnMSfwWLQk1ucY7wg3RekFiQn++NIag=; b=TxUPc1ItDrJbASFLP4C1PF7ZkCU0+Eh262CUuVg/An5TcMdO8p/Pr06sRNq4xvu59D va4JXd0k6R5xCOz6Lud2CaUDp5qFa4r3m6P3lWC3CvKQkegtPpOwzNiTl/4HdTyNZoti Fgifv/7MFlZilq/P/eglgRuPXU4m5jCVB+Mv35+4jncjoHtXt7rIGfu2rHmO98fCT0dD gc9R5dTOlkCV0CWExIKy1+jOqp/XHvpnvTpz5+F2Wi/pJqC/XUvdPChWFWK849fEcuBJ 3zV+H8X4kjt+sBAWwdQKdqYyYE37Add+p6ClYWhIasMZ5jcckXzvtTye1gjSrgWXE1mj LONg== X-Gm-Message-State: AOJu0YzXQbww9r3UCRNdinI3k7jlxorzyjIBfSiFEdaX6syacM5MS0Pd hDptdg/+XIqXD5Lk6aI/sR7OtavR2e6aFg== X-Google-Smtp-Source: AGHT+IESLNjXCZnX8KuXMn/B0okjDpcQJY84fV8sGAUTUGG1tPpCYaFeR9WKGnmIV5NShYoD5kioLw== X-Received: by 2002:a5e:c807:0:b0:7b4:28f8:15ca with SMTP id y7-20020a5ec807000000b007b428f815camr5701939iol.42.1701711105381; Mon, 04 Dec 2023 09:31:45 -0800 (PST) Received: from Elitebook ([2a09:bac5:30a9:5f5::98:1c]) by smtp.gmail.com with ESMTPSA id x10-20020a5eda0a000000b007b442283c5csm969823ioj.44.2023.12.04.09.31.43 for <bug-gnu-emacs@HIDDEN> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 09:31:44 -0800 (PST) Date: Mon, 4 Dec 2023 19:31:38 +0200 From: Herman <mahlamytsike@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: Emacs 29.1: (x-open-connection (getenv "DISPLAY")) gets "Display :0.0 does not exist" error Message-ID: <20231204193138.3bb398b8@Elitebook> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::d2d; envelope-from=mahlamytsike@HIDDEN; helo=mail-io1-xd2d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 04 Dec 2023 15:01:07 -0500 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) Hi ! 'x-create-frame' succeeds, but 'x-open-connection' fails with same display argument. This error "Display :0.0 does not exist" happens only, when variable 'debug-on-error' is non-nil. When 'debug-on-error' is nil, the error is not present. I.e. it works on the principle - you get what you are looking for. Tested also on Emacs 28.2 and there error is not present regardless of the value of the variable 'debug-on-error'. xfwm4 4.18.0 xorg-server 21.1.9 Emacs 29.1 Archlinux How to reproduce: ################# $ emacs --fg-daemon -Q ... Starting Emacs daemon. $ emacsclient --eval "(setq debug-on-error t)" t $ emacsclient --eval "(x-open-connection (getenv \"DISPLAY\"))" nil ... Debugger entered--Lisp error: (error "Display :0.0 does not exist") signal(error ("Display :0.0 does not exist")) error("Display %s does not exist" ":0.0") get-device-terminal(":0.0") frames-on-display-list(":0.0") font-setting-change-default-font(":0.0" nil) dynamic-setting-handle-config-changed-event((config-changed-event font-render ":0.0")) funcall-interactively(dynamic-setting-handle-config-changed-event (config-changed-event font-render ":0.0")) call-interactively(dynamic-setting-handle-config-changed-event nil [(config-changed-event font-render ":0.0")]) command-execute(dynamic-setting-handle-config-changed-event nil [(config-changed-event font-render ":0.0")] t) The full testing: ################# $ emacs --fg-daemon -Q ... Starting Emacs daemon. $ emacsclient --eval "(setq debug-on-error t)" t $ emacsclient --eval "debug-ignored-errors" (beginning-of-line beginning-of-buffer end-of-line end-of-buffer end-of-file buffer-read-only file-supersession mark-inactive user-error) $ emacsclient --eval "debug-on-signal" nil $ emacsclient --eval "debug-on-event" sigusr2 $ emacsclient --eval "(terminal-list)" (#<terminal 0 on initial_terminal>) $ emacsclient --eval "(get-device-terminal nil)" #<terminal 0 on initial_terminal> $ emacsclient --eval "(x-display-list)" nil $ emacsclient --eval "(x-open-connection (getenv \"DISPLAY\"))" nil ... Debugger entered--Lisp error: (error "Display :0.0 does not exist") signal(error ("Display :0.0 does not exist")) error("Display %s does not exist" ":0.0") get-device-terminal(":0.0") frames-on-display-list(":0.0") font-setting-change-default-font(":0.0" nil) dynamic-setting-handle-config-changed-event((config-changed-event font-render ":0.0")) funcall-interactively(dynamic-setting-handle-config-changed-event (config-changed-event font-render ":0.0")) call-interactively(dynamic-setting-handle-config-changed-event nil [(config-changed-event font-render ":0.0")]) command-execute(dynamic-setting-handle-config-changed-event nil [(config-changed-event font-render ":0.0")] t) $ emacs --fg-daemon -Q ... Starting Emacs daemon. $ emacsclient --eval "(setq debug-on-error t)" t $ emacsclient --eval "(x-create-frame \`((display . ,(getenv \"DISPLAY\"))))" #<frame *scratch* - GNU Emacs at Elitebook 0x55f5f31eeba0> $ emacsclient --eval "(terminal-list)" (#<terminal 0 on initial_terminal> #<terminal 1 on :0.0>) $ emacsclient --eval "(get-device-terminal nil)" #<terminal 1 on :0.0> $ emacsclient --eval "(x-display-list)" (":0.0") $ emacsclient --eval "(kill-emacs)" $ emacs --fg-daemon -Q ... Starting Emacs daemon. $ emacsclient --eval "(x-open-connection (getenv \"DISPLAY\"))" nil $ emacsclient --eval "(x-display-list)" (":0.0") $ emacsclient --eval "(terminal-list)" (#<terminal 0 on initial_terminal> #<terminal 1 on :0.0>) $ emacsclient --eval "(get-device-terminal nil)" #<terminal 0 on initial_terminal>
Herman <mahlamytsike@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#67628
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.