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

From: Po Lu <[email-masked]>
Date: Sat, 20 May 2023 16:28:30 +0800

Eli Zaretskii <[email-masked]> writes:

> What function(s) is/are used at that point which tells us a GUI
> session is impossible?

window-system-initialization.

> 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.