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

From: Alan Mackenzie <[email-masked]>
Date: 27 May 2016 21:38:17 -0000

In article <[email-masked]> I wrote:
> 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.

Apologies: I meant ....`desktop-restore-frames' should be non-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).

It appears that, although there were several frames when the desktop file
was saved, these are not being recreated by `desktop-read'.

Perhaps it is relevant that this is happening on a Linux virtual
terminal, both the saving of the desktop file, and the attempt to load it
again.

-- 
Alan Mackenzie (Nuremberg, Germany).