Subject: Re: bug#15382: desktop restores buffers in wrong order

From: Juri Linkov <[email-masked]>
Date: Sun, 15 Dec 2013 23:44:12 +0200

> The wrong order of restored desktop buffers is caused
> by addition of these two conditions in `desktop-read':
>
>             (unless (desktop-restoring-frameset-p)
>
> Removing this condition in two places in `desktop-read'
> restores the right order.
>
> Were these conditions intended to fix some problems?

It seems these conditions were intended only for multi-frame case.
So they should be removed in single-frame case.  Then in multi-frame
case the right thing to do would be to save and restore the frame
parameters `buffer-list' and `buried-buffer-list' for every frame.