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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Alan Mackenzie <acm@HIDDEN>; merged with #15382; dated Fri, 27 May 2016 12:03:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Forcibly Merged 15382 23630. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 23630 <at> debbugs.gnu.org:


Received: (at 23630) by debbugs.gnu.org; 19 Aug 2016 09:07:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 19 05:07:24 2016
Received: from localhost ([127.0.0.1]:33867 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bafls-0007JG-Ca
	for submit <at> debbugs.gnu.org; Fri, 19 Aug 2016 05:07:24 -0400
Received: from smtp2-g21.free.fr ([212.27.42.2]:19779)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <23630debbugs@HIDDEN>) id 1bafOa-0006jR-Fu
 for 23630 <at> debbugs.gnu.org; Fri, 19 Aug 2016 04:43:20 -0400
Received: from ccfobr (unknown [134.158.231.17])
 (Authenticated sender: foudilmusic)
 by smtp2-g21.free.fr (Postfix) with ESMTPSA id ECE342003B1
 for <23630 <at> debbugs.gnu.org>; Fri, 19 Aug 2016 08:38:47 +0200 (CEST)
User-agent: mu4e 0.9.17; emacs 25.1.1
From: Foudil <23630debbugs@HIDDEN>
To: 23630 <at> debbugs.gnu.org
Subject: Re: bug#23630: Emacs 25.0.94.1: desktop-read loads buffers in the
 wrong order.
X-Debbugs-CC: Alan Mackenzie <acm@HIDDEN>
Date: Fri, 19 Aug 2016 10:43:09 +0200
Message-ID: <86h9ah409u.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: 23630
X-Mailman-Approved-At: Fri, 19 Aug 2016 05:07:23 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.8 (/)

Same problem here after upgrading from 24.5-4 to 25.1.1. Even when upgrading the desktop format to version 208.
I use `emacs -nw`.

Trying plain `emacs` GUI, I got error "Font ‘tty’ is not defined".
Removing the `desktop-saved-frameset` variable in my .emacs.desktop, and setting `desktop-restore-frames` to nil solved the issue.

Thanks to Alan for pointing in the right direction.




Information forwarded to acm@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#23630; Package emacs. Full text available.

Message received at 23630 <at> debbugs.gnu.org:


Received: (at 23630) by debbugs.gnu.org; 27 May 2016 21:38:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 27 17:38:21 2016
Received: from localhost ([127.0.0.1]:42930 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1b6PSW-0008Fz-Sh
	for submit <at> debbugs.gnu.org; Fri, 27 May 2016 17:38:21 -0400
Received: from mail.muc.de ([193.149.48.3]:65060)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <acm@HIDDEN>) id 1b6PSV-0008Fp-9z
 for 23630 <at> debbugs.gnu.org; Fri, 27 May 2016 17:38:19 -0400
Received: (qmail 3257 invoked by uid 3782); 27 May 2016 21:38:17 -0000
Date: 27 May 2016 21:38:17 -0000
Message-ID: <20160527213817.3256.qmail@HIDDEN>
From: Alan Mackenzie <acm@HIDDEN>
To: 23630 <at> debbugs.gnu.org
Subject: Re: bug#23630: Emacs 25.0.94.1: desktop-read loads buffers in the
 wrong	order.
Organization: muc.de e.V.
In-Reply-To: <mailman.383.1464350590.1216.bug-gnu-emacs@HIDDEN>
X-Newsgroups: gnu.emacs.bug
User-Agent: tin/2.3.1-20141224 ("Tallant") (UNIX) (FreeBSD/10.3-RELEASE
 (amd64))
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: 23630
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.4 (-)

In article <mailman.383.1464350590.1216.bug-gnu-emacs@HIDDEN> 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).





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23630; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 May 2016 12:02:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 27 08:02:19 2016
Received: from localhost ([127.0.0.1]:41290 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1b6GT4-0004Sz-Vs
	for submit <at> debbugs.gnu.org; Fri, 27 May 2016 08:02:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34021)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <acm@HIDDEN>) id 1b6GT3-0004Sm-TI
 for submit <at> debbugs.gnu.org; Fri, 27 May 2016 08:02:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <acm@HIDDEN>) id 1b6GSt-0001t1-Vb
 for submit <at> debbugs.gnu.org; Fri, 27 May 2016 08:02:12 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:39409)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <acm@HIDDEN>)
 id 1b6GSt-0001ro-SG
 for submit <at> debbugs.gnu.org; Fri, 27 May 2016 08:02:07 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:53196)
 by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <acm@HIDDEN>)
 id 1b6GSl-0003f7-4i
 for bug-gnu-emacs@HIDDEN; Fri, 27 May 2016 08:02:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <acm@HIDDEN>) id 1b6GSd-0001os-MQ
 for bug-gnu-emacs@HIDDEN; Fri, 27 May 2016 08:01:59 -0400
Received: from mail.muc.de ([193.149.48.3]:28251)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <acm@HIDDEN>)
 id 1b6GSd-0001o5-Cm
 for bug-gnu-emacs@HIDDEN; Fri, 27 May 2016 08:01:51 -0400
Received: (qmail 6365 invoked by uid 3782); 27 May 2016 11:55:08 -0000
Received: from acm.muc.de (p4FC4616C.dip0.t-ipconnect.de [79.196.97.108]) by
 colin.muc.de (tmda-ofmipd) with ESMTP;
 Fri, 27 May 2016 13:55:06 +0200
Received: (qmail 4621 invoked by uid 1000); 27 May 2016 11:55:09 -0000
Date: Fri, 27 May 2016 11:55:09 +0000
To: bug-gnu-emacs@HIDDEN
Subject: Emacs 25.0.94.1: desktop-read loads buffers in the wrong order.
Message-ID: <20160527115509.GA2689@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.24 (2015-08-30)
X-Delivery-Agent: TMDA/1.1.12 (Macallan)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.3 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.3 (----)

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).




Acknowledgement sent to Alan Mackenzie <acm@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#23630; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.