From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: How to restore the layout? Date: Fri, 28 Jun 2013 08:34:09 +0200 Message-ID: <51CD2E61.5010402@gmx.at> References: <51C5AA68.4000204@alice.it> <51C8B2C8.4000803@gmx.at> <51C93CDB.2020301@gmx.at> <51C9C790.3020407@gmx.at> <51CA0D4C.7080204@alice.it> <0A6F5672-6149-41B7-B0FF-D4725076B271@mit.edu> <51CB3299.50004@gmx.at> <51CBF25A.2030902@gmx.at> <51CC081C.2060304@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1372401262 32387 80.91.229.3 (28 Jun 2013 06:34:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Jun 2013 06:34:22 +0000 (UTC) Cc: chad , Drew Adams , Emacs developers To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 28 08:34:19 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UsSGB-0006u9-1H for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 08:34:19 +0200 Original-Received: from localhost ([::1]:44854 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsSGA-0000Xz-HL for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 02:34:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsSG7-0000Xt-F5 for emacs-devel@gnu.org; Fri, 28 Jun 2013 02:34:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsSG6-0005g8-7y for emacs-devel@gnu.org; Fri, 28 Jun 2013 02:34:15 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:65489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsSG5-0005fu-Ts for emacs-devel@gnu.org; Fri, 28 Jun 2013 02:34:14 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.20]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0LtTty-1U9WdM3lsi-010t9r for ; Fri, 28 Jun 2013 08:34:12 +0200 Original-Received: (qmail invoked by alias); 28 Jun 2013 06:34:12 -0000 Original-Received: from 62-47-52-9.adsl.highway.telekom.at (EHLO [62.47.52.9]) [62.47.52.9] by mail.gmx.net (mp020) with SMTP; 28 Jun 2013 08:34:12 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/70Xhdk2T70ckXzIOBI7KImChplGIG6MFuHh/yet 00dy0pu97zcwY7 In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.21 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:161168 Archived-At: >> We'd have to recreate the old window sequence numbers first and make >> windows and saved minibuffer frame parameters store these numbers. The >> minibuffer frame parameters would have to be restored after all frames >> have been created, from a list associating each new window with its old >> sequence number. > > Seems messy. I'm afraid there's no other way round. We could save a pointer to a frame instead which then must either be or have a minibuffer window and reconstruct the value from that which would be yet a bit more messy. >> Here we'd have for each frame/window store the names of the buffers on >> these lists and reassign them after the buffers have been recreated. > > Why frame/window? Isn't that a frame parameter? Windows have buffer lists too. > Restoring the frame's buffer-list could be done right now without > really having to change much, other than the format of > desktop--saved-states. We'd still have to translate buffer objects to buffer names when saving and convert them back when restoring states plus remove any buffers found dead by `desktop-restore-file-buffer'. martin