From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Covici Newsgroups: gmane.emacs.bugs Subject: bug#24298: Acknowledgement (25.1; problem with restoring desktop) Date: Sat, 10 Dec 2016 11:02:47 -0500 Organization: Covici Computer Systems Message-ID: References: <83oa0rlnmw.fsf@gnu.org> <83pokzg944.fsf@gnu.org> <83mvg3g4wi.fsf@gnu.org> Reply-To: covici@ccs.covici.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Trace: blaine.gmane.org 1481385794 21972 195.159.176.226 (10 Dec 2016 16:03:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Dec 2016 16:03:14 +0000 (UTC) User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Cc: 24298@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 10 17:03:11 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 1cFk7C-0005H1-Rq for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Dec 2016 17:03:10 +0100 Original-Received: from localhost ([::1]:52183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFk7H-00020n-2i for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Dec 2016 11:03:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFk75-0001xV-QE for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 11:03:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFk74-0001BW-TS for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 11:03:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49959) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cFk74-0001BH-RP for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 11:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cFk74-0000Hh-Gv for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2016 11:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: John Covici Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Dec 2016 16:03:02 +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.14813857751080 (code B ref 24298); Sat, 10 Dec 2016 16:03:02 +0000 Original-Received: (at 24298) by debbugs.gnu.org; 10 Dec 2016 16:02:55 +0000 Original-Received: from localhost ([127.0.0.1]:37125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFk6x-0000HK-8E for submit@debbugs.gnu.org; Sat, 10 Dec 2016 11:02:55 -0500 Original-Received: from mail0205.smtp25.com ([174.37.170.205]:42375) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cFk6u-0000HA-BR for 24298@debbugs.gnu.org; Sat, 10 Dec 2016 11:02:53 -0500 Original-Received: from ccs.covici.com (localhost [127.0.0.1]) by ccs.covici.com (8.14.9/8.14.8) with ESMTP id uBAG2nHC031710 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 10 Dec 2016 11:02:49 -0500 Original-Received: (from covici@localhost) by ccs.covici.com (8.14.9/8.13.7/Submit) id uBAG2loQ031708; Sat, 10 Dec 2016 11:02:47 -0500 In-Reply-To: <83mvg3g4wi.fsf@gnu.org> X-SpamH-Filter: s-out-001.smtp25.com-uBAG2neg003942 X-SpamH-OriginatingIP: 70.109.53.110 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:126811 Archived-At: On Sat, 10 Dec 2016 10:50:05 -0500, Eli Zaretskii wrote: > > > Date: Sat, 10 Dec 2016 10:02:11 -0500 > > From: John Covici > > Cc: 24298@debbugs.gnu.org > > > > I can reproduce this with a desktop with just two buffers, what > > happens is when the commit is there, the wrong buffer is the current > > one and if I do c-x-b it has the scratch buffer as the next one > > rather than the previous buffer. For instance in the desktop I will > > send you, the current buffer is the Makefile, but when I restore the > > desktop, default.xml is made the current buffer instead and the > > scratch buffer is the default for c-x-b. > > 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. -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com