From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Herman Newsgroups: gmane.emacs.bugs Subject: bug#67628: Emacs 29.1: (x-open-connection (getenv "DISPLAY")) gets "Display :0.0 does not exist" error Date: Tue, 5 Dec 2023 00:44:05 +0200 Message-ID: <20231205004405.3fc7190e@Elitebook> References: <20231204193138.3bb398b8@Elitebook> <83il5d683k.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20364"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67628@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 05 06:02:26 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 1rANZg-00054A-HR for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Dec 2023 06:02:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rANZD-0000bi-Ll; Tue, 05 Dec 2023 00:01:55 -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 1rANZB-0000az-Pg for bug-gnu-emacs@gnu.org; Tue, 05 Dec 2023 00:01:53 -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 1rANZB-0003O9-GS for bug-gnu-emacs@gnu.org; Tue, 05 Dec 2023 00:01:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rANZM-0001R9-Cn for bug-gnu-emacs@gnu.org; Tue, 05 Dec 2023 00:02:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Herman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Dec 2023 05:02:04 +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.17017525155446 (code B ref 67628); Tue, 05 Dec 2023 05:02:04 +0000 Original-Received: (at 67628) by debbugs.gnu.org; 5 Dec 2023 05:01:55 +0000 Original-Received: from localhost ([127.0.0.1]:36275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rANZ8-0001Pf-He for submit@debbugs.gnu.org; Tue, 05 Dec 2023 00:01:55 -0500 Original-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 ) id 1rAHfu-0007xh-UK for 67628@debbugs.gnu.org; Mon, 04 Dec 2023 17:44:27 -0500 Original-Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-50bfd8d5c77so1309163e87.1 for <67628@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) Original-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) In-Reply-To: <83il5d683k.fsf@gnu.org> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-pc-linux-gnu) X-Mailman-Approved-At: Tue, 05 Dec 2023 00:01:47 -0500 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:275554 Archived-At: On Mon, 04 Dec 2023 22:11:43 +0200 Eli Zaretskii wrote: > > Date: Mon, 4 Dec 2023 19:31:38 +0200 > > From: Herman > > > > '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.