From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#63555: emacs 29 complains that it can't connect to the display Date: Fri, 19 May 2023 15:26:42 +0200 Message-ID: <87ednclael.fsf@gmail.com> References: <87ttwbawse.fsf@vps.thesusis.net> <83v8gou9yb.fsf@gnu.org> <87a5y04wgh.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30765"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Phillip Susi , 63555@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 19 15:27:16 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 1q008a-0007lm-Ey for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 May 2023 15:27:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q008O-00030F-DH; Fri, 19 May 2023 09:27:04 -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 1q008N-0002zd-7Y for bug-gnu-emacs@gnu.org; Fri, 19 May 2023 09:27:03 -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 1q008L-0004ot-Sa for bug-gnu-emacs@gnu.org; Fri, 19 May 2023 09:27:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q008L-0000oN-Or for bug-gnu-emacs@gnu.org; Fri, 19 May 2023 09:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 May 2023 13:27:01 +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.16845028133104 (code B ref 63555); Fri, 19 May 2023 13:27:01 +0000 Original-Received: (at 63555) by debbugs.gnu.org; 19 May 2023 13:26:53 +0000 Original-Received: from localhost ([127.0.0.1]:55702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q008C-0000o0-MY for submit@debbugs.gnu.org; Fri, 19 May 2023 09:26:53 -0400 Original-Received: from mail-wr1-f46.google.com ([209.85.221.46]:53611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q008A-0000nk-Nj for 63555@debbugs.gnu.org; Fri, 19 May 2023 09:26:51 -0400 Original-Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-30959c0dfd6so372172f8f.3 for <63555@debbugs.gnu.org>; Fri, 19 May 2023 06:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684502804; x=1687094804; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=XliKK61Z5WdGkyRdU/IQrY9S8O74kPJ//uYr4vO3fQw=; b=DKKzdsweQTUDjzqXgHEkXoKWvL0l8PwuYaB8lEdKJojjU4s12olRr4qHe08ZwMyjDG XFkzGV919DuiaGUYcMPAWqoJkN4IXvrGKyMSOtbsTB3qkFnytPn/0esi8QyMGn3fs4LD YfIbwDKH5TG1YmqW/Cb8Bd9UBar58TNsV2ocZGU0lu0m3kebYVNmUMi6hnqhrIBGfotF DC/PT2pzmIG90IH37w8PtMmXmHeNoZWsRZ4IcYWQloMl5pF4StYIockz6Siq4n0N3n8g mLOIP0OYjcBkfkorDOIQiIcxPHrySeUrMZqjm+hpEvzCC5F39B4ganloSzFcIaaXuuY3 0okg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684502804; x=1687094804; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XliKK61Z5WdGkyRdU/IQrY9S8O74kPJ//uYr4vO3fQw=; b=ArFjQMeUsNTPjhwanmuwSQNBNSw83I/ctSJHPzz4omn/vvTt8QlLirtbezbVgt57Jb zd3IxYyMNSAbFBz7G0T5+iVM7/ytZkomgroajR8aqZlzGM39reUZlz5R9SQvka1oQEpJ Yo+jI57k4adS41OnRELr5tR/NknU2fUIb3mtEPmhsn76BUTtpsOzgsm2UtJV4tBWYJW0 4AToTuLhFAmgI11HUSs8JfiWnedlMdx5x736wI4VAAxCIqfmyTNAXOGhH1UJYQL/k0As QUzBcM+Rk5QGxQk2D0W+ua8iY+CunWpQGYHWN0pNdPvAMaVMZOd4CWMDS2BnA2SGmcgH shNg== X-Gm-Message-State: AC+VfDwBMAW+CMCVtgJfKTH/KkQFaaTS3Pp2TIledXGIn55yUmjjNp05 9IndsqQ0gck4b74eqUKmGm9Qg42XKAY= X-Google-Smtp-Source: ACHHUZ6lyXutg8iGXy5ML7ZOmb7XVugUQOAvHb0yLK3oj++0xazqzEtg871cCdKK0omFBZHg7HBrKQ== X-Received: by 2002:a5d:4b51:0:b0:306:3319:e432 with SMTP id w17-20020a5d4b51000000b003063319e432mr1598043wrs.18.1684502804257; Fri, 19 May 2023 06:26:44 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id x15-20020adfec0f000000b002cea9d931e6sm5345563wrn.78.2023.05.19.06.26.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 06:26:43 -0700 (PDT) In-Reply-To: <87a5y04wgh.fsf@yahoo.com> (Po Lu via's message of "Fri, 19 May 2023 15:22:22 +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:261996 Archived-At: >>>>> On Fri, 19 May 2023 15:22:22 +0800, Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" said: Po Lu> Eli Zaretskii writes: >>> From: Phillip Susi >>> Date: Wed, 17 May 2023 09:51:43 -0400 >>> >>> Package: emacs >>> Version: 29.0.90 >>> >>> In previous versions of emacs, if the DISPLAY/WAYLAND_DISPLAY variable >>> was not set, it would default to tty mode. In version 29, it seems to >>> assume a default value and complains that it can't connect to the >>> display server unless you run it with -nw. >> >> 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 Robert --