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.help Subject: 'x-create-frame' succeeds, but 'x-open-connection' fails with same display argument Date: Mon, 4 Dec 2023 02:11:12 +0200 Message-ID: <20231204021112.07410c13@Elitebook> 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="29030"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 04 01:12:05 2023 Return-path: Envelope-to: geh-help-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 1r9wZB-0007P3-5n for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 04 Dec 2023 01:12:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r9wYV-0000x6-8Q; Sun, 03 Dec 2023 19:11:23 -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 1r9wYT-0000wb-CV for help-gnu-emacs@gnu.org; Sun, 03 Dec 2023 19:11:21 -0500 Original-Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r9wYR-00073v-JD for help-gnu-emacs@gnu.org; Sun, 03 Dec 2023 19:11:21 -0500 Original-Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-50be3eed85aso2046835e87.2 for ; Sun, 03 Dec 2023 16:11:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701648676; x=1702253476; 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=EN9jto4S8FI5VxfrI/i0aDcJiSYJ4xCHJvVpDKOawY4=; b=M6oeZ3/Q4CPFA+ZBKPGOMxXHD+T8cxI8TIIqm4HKFY0t7gk5C16WwAl1n5EwAJanzX 54maxqnfywps5/xKy5TX3OWptvYIJZSPBhzh/URyu5mML5RNXZeaYqltTArQn3ElnhTM PWQlN7KnFyODN9fJ9TWVYBgBvOs1Y5VK+MhHQG+tH7uW5VGQ0KEqXCEtn3VQ6FXmzReD eJj3gOMFPE21hUO7rUUTjsYz6t36gBIhXIqsAUmZQ3genKpiZZuI+EQ2otx/UB8V3mGQ HGrcRsJ8xsjmdI6kfFsfX4tiqICVwDVTjGTr8H52OLq9tliawAwibQT26/ZHgaGMbOcV ep/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701648676; x=1702253476; 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=EN9jto4S8FI5VxfrI/i0aDcJiSYJ4xCHJvVpDKOawY4=; b=jEPp5SBb5xl7bzyYu2jjrnd0MYM3Lk0bgxMZPLKtU3gaEij3r7qNoaZBb4zLQ9W5mA RV/oG/01R3qw7WgQbRb906TDnv99MVReSrc22YcDqZPoPD8RR4rR288EuxjhrIVhyVwS Jb98ivDh4tmNyxunZDs5YNjlqoqjgu/feQomViX+xgRVYXsH9nvi8UOBc7HG81czuzHx BpMETTiuROL8fT6lRPDGBP+MKNofZPJUkrPS1FmFcWTEWWWe5cEU5VzD20/G6zWHhURY cWn/GLlET+NPkBmbYMPA0NjMsI3e9ADdFy1d63jtUT72jZQ5pqGg9fPyXiXP0KIRPShx E/yw== X-Gm-Message-State: AOJu0YzZk7ccBf2vxSeSLEcx5KINwjyPJG8hkDqoQdjMSfJghgQFdfnu qyhaFUSLLsbAxOTe8eXIw4z8CvnNC2SNWQ== X-Google-Smtp-Source: AGHT+IGwdddICyUYaPZbqbzkbNVy4kHauT6gKYxKcqkf1oIw71wu5l+z4R0mDQIMxoHBpFud3uPa2Q== X-Received: by 2002:a05:6512:696:b0:50b:d764:76c8 with SMTP id t22-20020a056512069600b0050bd76476c8mr3422567lfe.87.1701648676340; Sun, 03 Dec 2023 16:11:16 -0800 (PST) Original-Received: from Elitebook ([2a09:bac1:2180::98:3d]) by smtp.gmail.com with ESMTPSA id j7-20020a05651231c700b0050bf015e3c9sm377203lfe.141.2023.12.03.16.11.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 16:11:16 -0800 (PST) X-Mailer: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-pc-linux-gnu) Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=mahlamytsike@gmail.com; helo=mail-lf1-x136.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-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145613 Archived-At: Hi ! $ emacs --fg-daemon $ emacsclient --eval "(terminal-list)" (#) $ emacsclient --eval "(get-device-terminal nil)" # $ emacsclient --eval "(x-display-list)" nil $ emacsclient --eval "(x-create-frame \`((display . ,(getenv \"DISPLAY\"))))" # $ emacsclient --eval "(terminal-list)" (# #) $ emacsclient --eval "(get-device-terminal nil)" # $ emacsclient --eval "(x-display-list)" (":0.0") $ emacsclient --eval "(kill-emacs)" $ emacs --fg-daemon $ 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 29.1. /--- 30.2 Multiple Terminals topic in Elisp manual says, 'x-open-connection' can be tested for communication with a given X display. What I have missed ? Thank you in advance for your help !