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: Sun, 23 Jun 2013 10:26:32 +0200 Message-ID: <51C6B138.50903@gmx.at> References: <51C5AA68.4000204@alice.it> 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 1371976006 31199 80.91.229.3 (23 Jun 2013 08:26:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Jun 2013 08:26:46 +0000 (UTC) Cc: emacs To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 23 10:26:46 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 1UqfdF-0007jR-Rf for ged-emacs-devel@m.gmane.org; Sun, 23 Jun 2013 10:26:45 +0200 Original-Received: from localhost ([::1]:57163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqfdF-0003C7-6b for ged-emacs-devel@m.gmane.org; Sun, 23 Jun 2013 04:26:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqfdC-0003BA-B1 for emacs-devel@gnu.org; Sun, 23 Jun 2013 04:26:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UqfdB-0005Qe-Dj for emacs-devel@gnu.org; Sun, 23 Jun 2013 04:26:42 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:52420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqfdB-0005QV-4L for emacs-devel@gnu.org; Sun, 23 Jun 2013 04:26:41 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.19]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0LwCv2-1UDWC03roc-0184oe for ; Sun, 23 Jun 2013 10:26:39 +0200 Original-Received: (qmail invoked by alias); 23 Jun 2013 08:26:38 -0000 Original-Received: from 62-47-60-204.adsl.highway.telekom.at (EHLO [62.47.60.204]) [62.47.60.204] by mail.gmx.net (mp019) with SMTP; 23 Jun 2013 10:26:38 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/v2eh4tQDv7SZ2aIJlZiB2XLXlqaiNotanFJScsJ V1GoQODmiuVtJT In-Reply-To: <51C5AA68.4000204@alice.it> 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.17.20 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:160902 Archived-At: > When we set desktop-save-mode, we can restore all the buffers of > previous session.. but what about the layout (windows, frames etc.)? > > For example, suppose one is working with 4 windows (C-x 3 and then, in > each window, C-x 2) of different size: one window with a .c buffer, two > windows with .h buffers, and another with eshell. > > It would be useful, the next morning one starts Emacs, not only to > restore all the buffers of previous session but also all the windows > (and their size/position) of the previous session.. > > Is this possible with current (trunk) Emacs? In Emacs 24.3 there are two functions `window-state-get' and `window-state-put' which can be used to do that. The only missing part is to write an interface to these functions when saving and restoring the desktop. I don't know whether anybody has done that. On trunk `window-state-get' was broken recently, see bug#14527. martin