From: Phillip Susi <phill@thesusis.net>
To: Robert Pluim <rpluim@gmail.com>
Cc: Po Lu <luangruo@yahoo.com>, Eli Zaretskii <eliz@gnu.org>,
63555@debbugs.gnu.org
Subject: bug#63555: closed (Re: bug#63555: emacs 29 complains that it can't connect to the display)
Date: Mon, 22 May 2023 12:44:40 -0400 [thread overview]
Message-ID: <87ttw4fh4r.fsf@vps.thesusis.net> (raw)
In-Reply-To: <875y8klt89.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 27 bytes --]
This patch works for me.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: auto-nw-mode.patch --]
[-- Type: text/x-diff, Size: 713 bytes --]
Index: b/src/dispnew.c
===================================================================
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -6559,8 +6558,20 @@ init_display_interactive (void)
#ifdef HAVE_PGTK
if (!inhibit_window_system && !will_dump_p ())
{
- Vinitial_window_system = Qpgtk;
- return;
+ char *display, *wayland_display;
+ display = getenv ("DISPLAY");
+ wayland_display = getenv ("WAYLAND_DISPLAY");
+
+ if (display == NULL && wayland_display == NULL)
+ {
+ fprintf (stderr, "Neither DISPLAY nor WAYLAND_DISPLAY are set, simulating -nw\n");
+ inhibit_window_system = 1;
+ }
+ else
+ {
+ Vinitial_window_system = Qpgtk;
+ return;
+ }
}
#endif
next prev parent reply other threads:[~2023-05-22 16:44 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-17 13:51 bug#63555: emacs 29 complains that it can't connect to the display Phillip Susi
2023-05-17 14:09 ` Phillip Susi
2023-05-19 6:11 ` Eli Zaretskii
2023-05-19 7:22 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-19 13:26 ` Robert Pluim
2023-05-19 14:52 ` Eli Zaretskii
2023-05-19 15:44 ` Robert Pluim
2023-05-20 1:40 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-20 5:51 ` Eli Zaretskii
2023-05-20 6:33 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-20 8:16 ` Eli Zaretskii
2023-05-20 8:28 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-20 12:58 ` Eli Zaretskii
2023-05-21 0:45 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-21 5:41 ` Eli Zaretskii
2023-05-21 6:32 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-21 11:16 ` Eli Zaretskii
2023-05-20 1:38 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
[not found] ` <handler.63555.D63555.168458752424255.notifdone@debbugs.gnu.org>
2023-05-20 17:35 ` bug#63555: closed (Re: bug#63555: emacs 29 complains that it can't connect to the display) Phillip Susi
2023-05-22 7:29 ` Robert Pluim
2023-05-22 9:26 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-22 10:05 ` Robert Pluim
2023-05-22 11:15 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-22 11:28 ` Robert Pluim
2023-05-22 12:50 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-22 13:37 ` Phillip Susi
2023-05-23 0:31 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-23 14:59 ` Phillip Susi
2023-05-24 0:20 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-25 15:38 ` Phillip Susi
2023-05-26 1:00 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-26 8:38 ` Robert Pluim
2023-05-26 15:54 ` Phillip Susi
2023-05-27 0:48 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-30 17:31 ` Phillip Susi
2023-05-31 1:19 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-22 16:44 ` Phillip Susi [this message]
2023-05-22 17:05 ` Robert Pluim
2023-05-23 14:58 ` Phillip Susi
2023-06-08 6:02 ` Daan Ro
2024-07-14 21:00 ` bug#63555: emacs 29 complains that it can't connect to the display Peter Oliver
2024-07-20 9:00 ` Eli Zaretskii
2024-08-04 7:50 ` Eli Zaretskii
2024-08-17 8:19 ` Eli Zaretskii
2024-08-17 8:22 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-31 8:00 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ttw4fh4r.fsf@vps.thesusis.net \
--to=phill@thesusis.net \
--cc=63555@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=luangruo@yahoo.com \
--cc=rpluim@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.