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

From: Mark Jamsek <[email-masked]>
Date: Fri, 25 Feb 2022 20:39:21 +1100

> On 25 Feb 2022, at 7:02 pm, Eli Zaretskii <[email-masked]> wrote:
> 
> 
>> 
>> From: Mark Jamsek <[email-masked]>
>> Date: Fri, 25 Feb 2022 13:58:36 +1100
>> Cc: [email-masked]
>> 
>> Do you know where in the codebase to dig to start debugging this?
> 
> 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?

> 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. I’ll read the thread in its entirety when back in front of the kb.

Sent from my iPhone