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#63555: emacs 29 complains that it can't connect to the display Date: Fri, 19 May 2023 17:52:06 +0300 Message-ID: <83h6s8tlux.fsf@gnu.org> References: <87ttwbawse.fsf@vps.thesusis.net> <83v8gou9yb.fsf@gnu.org> <87a5y04wgh.fsf@yahoo.com> <87ednclael.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12314"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, phill@thesusis.net, 63555@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 19 16:56:34 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 1q01Wz-0002v4-MP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 May 2023 16:56:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q01Tj-0006u6-TB; Fri, 19 May 2023 10:53:11 -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 1q01Tc-0006nN-JC for bug-gnu-emacs@gnu.org; Fri, 19 May 2023 10:53:05 -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 1q01Tb-0003t0-Ay for bug-gnu-emacs@gnu.org; Fri, 19 May 2023 10:53:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q01Ta-0008Ty-DK for bug-gnu-emacs@gnu.org; Fri, 19 May 2023 10:53: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: Fri, 19 May 2023 14:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63555 X-GNU-PR-Package: emacs Original-Received: via spool by 63555-submit@debbugs.gnu.org id=B63555.168450792632543 (code B ref 63555); Fri, 19 May 2023 14:53:02 +0000 Original-Received: (at 63555) by debbugs.gnu.org; 19 May 2023 14:52:06 +0000 Original-Received: from localhost ([127.0.0.1]:57101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q01Sf-0008Sp-UP for submit@debbugs.gnu.org; Fri, 19 May 2023 10:52:06 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q01Se-0008SM-Cy for 63555@debbugs.gnu.org; Fri, 19 May 2023 10:52:05 -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 1q01SY-0003hc-Rm; Fri, 19 May 2023 10:51:58 -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=PD0Su7JVOZ0km6oUhQ9RueG9F/UHHU18Fg8EUZJM9qM=; b=P3L/7B5ktQfu 7BP7qvn7IUV9mntzS2Zqvd6FD/HWPrPthytW9G2QMi8ikd9kATHkwqBx3juptFKAC8TimJWT2VzU7 ei83qkV6lcoNvBlomAjNbolTlwEn2hrUX8b11uQd5x5B/aAsooIfaq3/tSDiz1bAllsGf91hbPH0f toYzZTwFqGJeQgzBaT2yQNWOYgCjv++rZ/ebvUEZd5RnsElzSYO+7jg5wtcbb1d4arl7kby/JFixO s+zCUxZYk98esbmUoNWvVm4MMuZk+gaH28vxnqhHb4XOL3+5qDow00xG/WK5d24YtEeTw3BbrO2jk OCHmfEm6WiWzYsoQHTqCnQ==; 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 1q01ST-0003iy-91; Fri, 19 May 2023 10:51:58 -0400 In-Reply-To: <87ednclael.fsf@gmail.com> (message from Robert Pluim on Fri, 19 May 2023 15:26:42 +0200) 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:262001 Archived-At: > From: Robert Pluim > Cc: Eli Zaretskii , Phillip Susi , > 63555@debbugs.gnu.org > Date: Fri, 19 May 2023 15:26:42 +0200 > > >> Po Lu, was this an intentional change? If so, did we document the > >> reasons? I cannot find anything in NEWS. > > Po Lu> No, I don't think so. This isn't intentional. > Po Lu> Phillip, please place a breakpoint on `init_display_interactive' in > Po Lu> src/dispnew.c. Then, step to this piece of code: > > Po Lu> if (! inhibit_window_system && ! display_arg) > Po Lu> { > Po Lu> char *display; > Po Lu> display = getenv ("DISPLAY"); > Po Lu> display_arg = (display != 0 && *display != 0); <---------- > > Po Lu> if (display_arg && !x_display_ok (display)) > Po Lu> { > Po Lu> fprintf (stderr, "Display %s unavailable, simulating -nw\n", > Po Lu> display); > Po Lu> inhibit_window_system = 1; > Po Lu> } > Po Lu> } > > Po Lu> and show: > > Po Lu> (gdb) p display > > HAVE_X_WINDOWS is not defined in a pgtk build, so this code is never > run. And it looks kind of X-specific in any case How did this work in Emacs 28, then? IOW, which change broke this feature on Wayland?