Subject: bug#63555: closed (Re: bug#63555: emacs 29 complains that it can't connect to the display)

From: Phillip Susi <[email-masked]>
Date: Sat, 20 May 2023 13:35:56 -0400

Eli Zaretskii <[email-masked]> writes:

> > Can we invoke those same functions earlier during startup to realize
> > this fact where we still can start as -nw?
> 
> Unfortunately not.  At least, not enough to make a change suitable for
> the release branch.

Why not?  How hard can it be to set -nw if neither DISPLAY nor
WAYLAND_DISPLAY is set, as emacs always has, prior to
window-system-initialization?

> Btw, the Emacs user manual says WAYLAND_DISPLAY is the variable used
> by PGTK, which you seem to say is inaccurate?

Yes, WAYLAND_DISPLAY is used if it is set ( as it will be under wayland
), or DISPLAY otherwise ( under X11, or wayland with Xwayland ).