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 16:02:16 +0200 Message-ID: <51CD9768.3030207@gmx.at> References: <51C5AA68.4000204@alice.it> <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> <51CD2E61.5010402@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 1372428155 31729 80.91.229.3 (28 Jun 2013 14:02:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Jun 2013 14:02:35 +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 16:02:35 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 1UsZFz-0001k7-5O for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 16:02:35 +0200 Original-Received: from localhost ([::1]:53171 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsZFy-0005sI-MH for ged-emacs-devel@m.gmane.org; Fri, 28 Jun 2013 10:02:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsZFr-0005rt-MQ for emacs-devel@gnu.org; Fri, 28 Jun 2013 10:02:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsZFn-0003tm-3A for emacs-devel@gnu.org; Fri, 28 Jun 2013 10:02:27 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:49299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsZFm-0003th-OS for emacs-devel@gnu.org; Fri, 28 Jun 2013 10:02:22 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.4]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0M2rpw-1U197V3fHS-00sbGE for ; Fri, 28 Jun 2013 16:02:19 +0200 Original-Received: (qmail invoked by alias); 28 Jun 2013 14:02:19 -0000 Original-Received: from 62-47-58-248.adsl.highway.telekom.at (EHLO [62.47.58.248]) [62.47.58.248] by mail.gmx.net (mp004) with SMTP; 28 Jun 2013 16:02:19 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/R7+cGhsrR54NmVGu//2Jnzkr16qslilz2OmOHxE ZCq3Kavo6hOlII In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.18 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:161205 Archived-At: >> 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. > > Let's wait and see whether that's really necessary. Good. We can always add that later on. >> 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'. > > For frames buffer-lists, I can do that quite easily. For windows > buffer-lists, you'd have to do that in the window-store-(get|put) or > provide some kind of hook to do it afterwards. It is really worth it? > All this save&restore does not really restore the full Emacs session > you were before. Hmm. That's why so far I didn't consider buffer lists in `window-state-get'. I hope we can disregard them. martin