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

From: Eli Zaretskii <[email-masked]>
Date: Sat, 20 May 2023 11:16:11 +0300

> From: Po Lu <[email-masked]>
> Cc: [email-masked],  [email-masked],  [email-masked]
> Date: Sat, 20 May 2023 14:33:09 +0800
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > Why cannot we "simulate -nw" where we issue the error message that we
> > cannot connect to the display server?  At that point, we presumably
> > already know that the default display could not be found.
> 
> That happens very late in the initialization process, in
> `normal-top-level'.

What function(s) is/are used at that point which tells us a GUI
session is impossible?  Can we invoke those same functions earlier
during startup to realize this fact where we still can start as -nw?