From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs,gmane.emacs.help Subject: bug#9105: Feature req: Remembering emacs frames, windows, buffer position to subsequent session Date: Sun, 17 Jul 2011 19:42:18 +0200 Message-ID: <4E231EFA.3000206@gmx.at> References: <20110716204736.5d3e63ef@chaostal.de> <87ei1qqawk.wl%v.plechinger@gmail.com> <20110717013918.7fd31f15@chaostal.de> <4E226E0A.6010601@mousecar.com> <4E22AF7A.1080102@gmx.at> <4E230619.6090205@mousecar.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1310924603 2596 80.91.229.12 (17 Jul 2011 17:43:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2011 17:43:23 +0000 (UTC) Cc: 9105@debbugs.gnu.org, GNU Emacs List To: gebser@mousecar.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 17 19:43:19 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QiVN9-0004gG-2D for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Jul 2011 19:43:19 +0200 Original-Received: from localhost ([::1]:41518 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiVN8-00011t-4I for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Jul 2011 13:43:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiVMt-00010a-Ij for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2011 13:43:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QiVMs-0003ai-NY for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2011 13:43:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiVMs-0003ae-Ly for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2011 13:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QiVMs-0000fi-5F; Sun, 17 Jul 2011 13:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Jul 2011 17:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9105 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9105-submit@debbugs.gnu.org id=B9105.13109245522542 (code B ref 9105); Sun, 17 Jul 2011 17:43:02 +0000 Original-Received: (at 9105) by debbugs.gnu.org; 17 Jul 2011 17:42:32 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QiVMN-0000ex-GN for submit@debbugs.gnu.org; Sun, 17 Jul 2011 13:42:31 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1QiVML-0000ek-Al for 9105@debbugs.gnu.org; Sun, 17 Jul 2011 13:42:30 -0400 Original-Received: (qmail invoked by alias); 17 Jul 2011 17:42:22 -0000 Original-Received: from 62-47-36-2.adsl.highway.telekom.at (EHLO [62.47.36.2]) [62.47.36.2] by mail.gmx.net (mp007) with SMTP; 17 Jul 2011 19:42:22 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+hkpZtdZmh0ut2mPYBAoBUFfaobzl5wQ81SrFBN0 BrscKSoMJcuDLQ User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <4E230619.6090205@mousecar.com> X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 17 Jul 2011 13:43:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49354 gmane.emacs.help:81633 Archived-At: > Where do I find these two functions? In window.el of the development version, that is Emacs 24.0.50.1. > Once I download them, would it make any difference if I put them in my > emacs-path rather than inserting them in or appending them to desktop.el? You will have to install Emacs 24 on your system. After that you will have to write two functions - one that writes for each frame the value returned by `window-state-get' on file together with the parameters of the frame, and one that reads the values from file, creates a new frame for each entry, and uses `window-state-put' to restore the window layouts within that frame. All this after you have recreated the buffers visiting files. And you have to decide what to do with windows whose buffers did not visit a file in the old session. martin