Subject: bug#54140: 27.2; desktop-save-mode fails to restore frame and window config

From: Eli Zaretskii <[email-masked]>
Date: Fri, 25 Feb 2022 14:02:33 +0200

> From: Mark Jamsek <[email-masked]>
> Date: Fri, 25 Feb 2022 20:39:21 +1100
> Cc: [email-masked], [email-masked]
> 
>  There's no need to debug this: this is the expected behavior on TTY
>  frames
> 
> Is this documented; if not, would a patch to this effect be accepted?

It depends on what the patch will do.  Unconditionally letting desktop
restore the frameset on TTY displays is out of the question, as it
will bring back the problems we solved when we prevented that.

>  see desktop-restoring-frameset-p.  We deliberately don't
>  restore the frameset on text-mode displays.  For the reasons, see
>  bug#17693.
> 
> I had a cursory look but don’t quite understand why that precludes desktop-save-mode from working with
> Emacs in the terminal. If you save an -nw session, you’d have no graphical frames to restore when starting
> an -nw session.

How do we know that the desktop was saved from a -nw session?

> I’ll read the thread in its entirety when back in front of the kb.

Thanks.  A related issue is bug#24298.