From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: GUI vs TTY when saving & restoring framesets Date: Sun, 22 Jan 2017 18:55:37 +0000 Message-ID: <20170122185537.GC12823@acm> References: <20170122132727.GA12823@acm> <831svv5a4l.fsf@gnu.org> <20170122180010.GB12823@acm> <83o9yz3qtw.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1485111404 14338 195.159.176.226 (22 Jan 2017 18:56:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 22 Jan 2017 18:56:44 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: lekktu@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 22 19:56:36 2017 Return-path: Envelope-to: ged-emacs-devel@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 1cVNJU-0002TB-D5 for ged-emacs-devel@m.gmane.org; Sun, 22 Jan 2017 19:56:28 +0100 Original-Received: from localhost ([::1]:37391 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVNJZ-0000s7-CI for ged-emacs-devel@m.gmane.org; Sun, 22 Jan 2017 13:56:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVNIz-0000r6-Sy for emacs-devel@gnu.org; Sun, 22 Jan 2017 13:55:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVNIw-00022j-SX for emacs-devel@gnu.org; Sun, 22 Jan 2017 13:55:58 -0500 Original-Received: from ocolin.muc.de ([193.149.48.4]:49609 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1cVNIw-00022W-I1 for emacs-devel@gnu.org; Sun, 22 Jan 2017 13:55:54 -0500 Original-Received: (qmail 20057 invoked by uid 3782); 22 Jan 2017 18:55:53 -0000 Original-Received: from acm.muc.de (p4FC46969.dip0.t-ipconnect.de [79.196.105.105]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 22 Jan 2017 19:55:52 +0100 Original-Received: (qmail 18526 invoked by uid 1000); 22 Jan 2017 18:55:37 -0000 Content-Disposition: inline In-Reply-To: <83o9yz3qtw.fsf@gnu.org> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.4 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:211551 Archived-At: Hello, Eli. On Sun, Jan 22, 2017 at 20:14:03 +0200, Eli Zaretskii wrote: > > Date: Sun, 22 Jan 2017 18:00:10 +0000 > > Cc: lekktu@gmail.com, emacs-devel@gnu.org > > From: Alan Mackenzie > > #23630 is not fixed. I've just tried it..... > > > FWIW, when I finished working on bug#24298, I no longer saw incorrect > > > order of buffers after restoring the desktop: their order was always > > > the same, as long as I restored from the same desktop file. Maybe you > > > just don't like the order in which desktop.el puts them in the desktop > > > file? > > ... on master. I had four frames open, cycled through them, then did > > C-x C-c, creating the desktop file and exiting. > > I restarted Emacs, which created the four frames, and then did C-x C-b. > > The second entry there was *scratch*. This was not any of the four > > buffers which were in the frames' windows when I previously shut down. > ??? The *scratch* buffer is created in any Emacs session regardless of > the saved desktop. So why isn't the above TRT? When did Emacs and > desktop.el behave differently? In All Emacsen up to Emacs 25, *scratch is right at the bottom of the buffer list, where it won't get in the way. > > Other than that, the order of the buffers in C-x C-b is the reverse of > > the order in my desktop file. > Why is that a problem? The order of buffers in the desktop file is > not something a user is supposed to look at, or care about. I care a great deal about it. I have set up keys to in the global key map to mean "switch to frame Fn". Thus, rather than just being an arbitrary GUI window, each frame is associated with a particular function key. I even have "Fn" in the mode line to see which frame I'm in. Usually when I close an Emacs session, I quickly type , , ...., to order the buffers in my .emacs.desktop. When I start Emacs (in a Linux tty, usually, with desktop-restore-frames nil) I do, repeatedly, C-x 5 b to set up the same buffers in the "same" frames. For this, I need the buffers to be loaded in the right order, WITHOUT *scratch* as an interloper. At the moment, this isn't happening in master in some circumstances. -- Alan Mackenzie (Nuremberg, Germany).