From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24298: Acknowledgement (25.1; problem with restoring desktop) Date: Sat, 10 Dec 2016 19:47:24 +0200 Message-ID: <83h96bfzgz.fsf@gnu.org> References: <83oa0rlnmw.fsf@gnu.org> <83pokzg944.fsf@gnu.org> <83mvg3g4wi.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1481392094 32380 195.159.176.226 (10 Dec 2016 17:48:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Dec 2016 17:48:14 +0000 (UTC) Cc: 24298@debbugs.gnu.org To: covici@ccs.covici.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 10 18:48:09 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFlkn-0007oN-IS for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Dec 2016 18:48:09 +0100 Original-Received: from localhost ([::1]:52620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFlkr-0008UV-Hf for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Dec 2016 12:48:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFlkk-0008UE-Dn for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 12:48:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFlkg-0001Iw-0D for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 12:48:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50028) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cFlkf-0001Is-TE for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 12:48:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cFlkf-0004j0-Mc for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 12:48:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Dec 2016 17:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24298 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24298-submit@debbugs.gnu.org id=B24298.148139204618113 (code B ref 24298); Sat, 10 Dec 2016 17:48:01 +0000 Original-Received: (at 24298) by debbugs.gnu.org; 10 Dec 2016 17:47:26 +0000 Original-Received: from localhost ([127.0.0.1]:37194 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFlk5-0004i3-UG for submit@debbugs.gnu.org; Sat, 10 Dec 2016 12:47:26 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFlk4-0004ho-11 for 24298@debbugs.gnu.org; Sat, 10 Dec 2016 12:47:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFlju-00013t-BS for 24298@debbugs.gnu.org; Sat, 10 Dec 2016 12:47:18 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFlju-00013n-8f; Sat, 10 Dec 2016 12:47:14 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1692 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cFljr-0007KP-G2; Sat, 10 Dec 2016 12:47:14 -0500 In-reply-to: (message from John Covici on Sat, 10 Dec 2016 11:02:47 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:126820 Archived-At: > Date: Sat, 10 Dec 2016 11:02:47 -0500 > From: John Covici > Cc: 24298@debbugs.gnu.org > > > The desktop file you sent doesn't have Makefile, it has default.xml > > and brltty-9999.ebuild. The buffer that's expected to be the current > > one after restoring is the first one in the list, and in your case > > it's default.xml. So if that buffer becomes the current after > > restoring desktop, I don't see a problem in the restore stage, and > > don't understand how that commit could have changed this. > > > > What do you see in the list returned by buffer-list, before you end a > > session? The buffers are recorded in the desktop file in the order > > they appear in that list, and in my case, this is the current buffer > > when I invoke desktop-save. > > I am sorry, it wasn't a makefile, you are correct. OK, let me try > again. Before the restore commit, when I enter emacs, the current > buffer is brltty-9999.ebuild but after the commit the current buffer > is the default.xml. Before the restore commit, if I do c-x-b the > default buffer it wants to switch to is default.xml. After the > restore commit, when the current buffer is default.xml when it should > be brltty-9999.ebuild the default buffer to switch to is the scratch > buffer. In a desktop with many buffers, after the restore commit, it > seems to pick a random buffer to be the current buffer rather than the > one it should be. > > I hope this is clear now. It is, thanks. But please also answer my question above about the order of buffers in the list returned by buffer-list, before you quite Emacs which writes the desktop file.