reddit / emacs

Using `desktop-read` to reload frames -- closing one frame closes all frames

nonreligious ยท 2022-03-07 11:44
A very annoying issue with `desktop-save` and `desktop-read` that I'm encountering at the moment: - I'm starting Emacs in `daemon-mode`, and then open a client frame. I do 'desktop-read' and my saved desktop opens with the 10 or so frames I had saved. - When I go to one of the frames with a buffer I'm no longer interested in, and do `C-x C-c`, I end up not just closing that particular frame, but all 10 or so of the frames that were open. - The Emacs daemon is still running, and opening another client frame shows that the buffers haven't been killed, so nothing has been lost per se - it's just that the arrangement of all the frames I had is just ruined. Any idea how to stop this behaviour (i.e. being able to just kill one frame from the saved configuration)? I should add that I have also been using the [minimal setup](https://www.emacswiki.org/emacs?action=browse;oldid=DeskTop;id=Desktop#h5o-5) for `desktop.el` as shown in the EmacsWiki, but I /think/ (but am not sure) that the problem is independent of this.