Subject: bug#11556: 24.0.97; Strange behaviour of bury-buffer after desktop-read

From: Tobias Bading <[email-masked]>
Date: Sun, 27 May 2012 18:16:55 +0200

Hi Martin,

desktop.diff works fine for me, thank you.

> Eventually, we should handle this when restoring the windows from the
> previous session but the question remains how to handle previously shown
> buffers correctly when doing `desktop-read' in the middle of a session.

What to expect from desktop-read when used in the middle of a session? Good question. I never use it that way, because I tend to spam my one and only session with lots of buffers ;-). However, other more organized people might use multiple desktop files. They would probably want desktop-read to behave as in Emacs 23, whatever that behaviour exactly was.

The "If no desktop file is found, clear the desktop [...]" part in the doc-string of desktop-read sounds odd to me. Why would the function want to clear the desktop if it doesn't find a desktop file, but perform some sort of a merge operation with the current session (instead of a replace) if one is found?

Kind regards,
Tobias