From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: GUI vs TTY when saving & restoring framesets Date: Sun, 22 Jan 2017 21:11:03 +0200 Message-ID: <83k29m52rc.fsf@gnu.org> References: <20170122132727.GA12823@acm> <831svv5a4l.fsf@gnu.org> <20170122180010.GB12823@acm> <83o9yz3qtw.fsf@gnu.org> <20170122185537.GC12823@acm> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1485112330 9938 195.159.176.226 (22 Jan 2017 19:12:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 22 Jan 2017 19:12:10 +0000 (UTC) Cc: lekktu@gmail.com, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 22 20:12:02 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 1cVNYO-0000uO-Ic for ged-emacs-devel@m.gmane.org; Sun, 22 Jan 2017 20:11:52 +0100 Original-Received: from localhost ([::1]:37426 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVNYO-0002pY-Qd for ged-emacs-devel@m.gmane.org; Sun, 22 Jan 2017 14:11:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVNXl-0002pR-Vn for emacs-devel@gnu.org; Sun, 22 Jan 2017 14:11:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVNXh-0007PW-B2 for emacs-devel@gnu.org; Sun, 22 Jan 2017 14:11:13 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVNXh-0007PS-7U; Sun, 22 Jan 2017 14:11:09 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4005 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cVNXf-0008R2-VB; Sun, 22 Jan 2017 14:11:08 -0500 In-reply-to: <20170122185537.GC12823@acm> (message from Alan Mackenzie on Sun, 22 Jan 2017 18:55:37 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:211552 Archived-At: > Date: Sun, 22 Jan 2017 18:55:37 +0000 > Cc: lekktu@gmail.com, emacs-devel@gnu.org > From: Alan Mackenzie > > > > 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. I don't really understand the need for this. I always have several frames in my sessions, each one with its buffer, and when I restore the sessions, each frame comes up with the same buffer it had when I shut down Emacs, no complicated frame-walking dance necessary, neither before shutting down Emacs nor after restarting it. Maybe this stuff you do is the culprit?