Subject: Emacs 25.0.94.1: desktop-read loads buffers in the wrong order.

From: Alan Mackenzie <[email-masked]>
Date: Fri, 27 May 2016 11:55:09 +0000

Hello, Emacs.

Run the following, having recently saved a desktop file in either
version 206 (the version current for Emacs < 25.1) or version 208 (the
new format for Emacs 25) in a previous Emacs session.  When saving the
desktop file, variable `desktop-restore-frames' should be nil.

In the Emacs pretest 25.0.94:
emacs -Q
M-x desktop-save-mode
M-x desktop-read

Now repeatedly do C-x 5 b.  The buffers which are displayed in the
successive new frames are:

    NEWS
    *scratch*
    *messages*
    .emacs25.desktop
    .emacs
    frameset.el
    desktop.el
    *info*

.  The entirety of the buffers recorded in .emacs.desktop is, in order:

    .emacs25.desktop
    .emacs
    frameset.el
    desktop.el
    NEWS
    *info*

.  Note: (i) NEWS has been spuriously placed at the front of the list of
buffers.  (ii) Buffers *scratch* and *messages* have been wrongly placed
in positions 2 and 3 of (buffer-list).

-- 
Alan Mackenzie (Nuremberg, Germany).