From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: session management with desktop and window configuration Date: Thu, 31 Dec 2009 17:32:44 +0100 Organization: aich tea tea pea dicky riley dot net Message-ID: <4b3cd22f.0c58560a.455c.1021@mx.google.com> References: <4B3C8BAB.7000607@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1262277207 17715 80.91.229.12 (31 Dec 2009 16:33:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Dec 2009 16:33:27 +0000 (UTC) Cc: Richard Riley , help-gnu-emacs@gnu.org To: Lennart Borgman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 31 17:33:19 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NQNxe-0008J1-EG for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Dec 2009 17:33:18 +0100 Original-Received: from localhost ([127.0.0.1]:57631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQNxe-0000mK-MH for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Dec 2009 11:33:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQNxI-0000kd-32 for help-gnu-emacs@gnu.org; Thu, 31 Dec 2009 11:32:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQNxD-0000jg-F3 for help-gnu-emacs@gnu.org; Thu, 31 Dec 2009 11:32:55 -0500 Original-Received: from [199.232.76.173] (port=41561 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQNxD-0000jd-9R for help-gnu-emacs@gnu.org; Thu, 31 Dec 2009 11:32:51 -0500 Original-Received: from mail-fx0-f228.google.com ([209.85.220.228]:40960) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NQNxC-0003CD-SN for help-gnu-emacs@gnu.org; Thu, 31 Dec 2009 11:32:51 -0500 Original-Received: by fxm28 with SMTP id 28so4190066fxm.26 for ; Thu, 31 Dec 2009 08:32:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:cc:subject :organization:references:date:in-reply-to:user-agent:mime-version :content-type:content-transfer-encoding; bh=w6cOgSVPlVbwO/tOlQr2HR2wi5zIewHv9ZO5zQe2G9s=; b=H3HiETEpf1Glr7JDInzr+JL7YQfr2KPHEhI/ABTOG2743u/XbbQdeYmYhfDvzQVqOJ zSrtUZUFke0AB/unSJBzNObLOrezghPI2IJd62p5lCZHkC7JRD9yqI6E/H+RuR1TtsGK fp2hb7dl5PttUbWX+cRPRD7YMnPx6FbK8H6Ho= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:cc:subject:organization:references:date :in-reply-to:user-agent:mime-version:content-type :content-transfer-encoding; b=G1StQVUQdL/2hDOinG2KtzfhUSMnEPSp5P4bYJ5RPor3YhJoVb8LDYC4AK+WYpwWdr Jwo4q6FI0VwqPz9oZyFiIo4RJQw/jkohtfPXCLMlJE4r47lL++ZU9ep5QF5/hBehzuoF uwvb+outIR99XFvlQ8vqNRLhnC4rvWWKEtZdQ= Original-Received: by 10.87.73.15 with SMTP id a15mr15666580fgl.5.1262277168705; Thu, 31 Dec 2009 08:32:48 -0800 (PST) Original-Received: from localhost ([85.183.18.158]) by mx.google.com with ESMTPS id l12sm33979608fgb.25.2009.12.31.08.32.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 31 Dec 2009 08:32:47 -0800 (PST) In-Reply-To: (Lennart Borgman's message of "Thu, 31 Dec 2009 17:22:38 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70981 Archived-At: Lennart Borgman writes: > On Thu, Dec 31, 2009 at 5:16 PM, Richard Riley wro= te: >> Lennart Borgman writes: >> >>>> >>>> Thanks for your reply. So, I wrote some functions using revive.el: >>>> >>>> (require 'revive) >>>> (defun kiwon/save-window-configuration () >>>> =C2=A0(write-region (concat "(restore-window-configuration '" >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0(prin1-to-string (current-window-configuration-printable)) >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0")") >>>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0nil ".emacs.res= tore-window.el")) >>>> (defun kiwon/restore-window-configuration () >>>> =C2=A0(when (file-exists-p ".emacs.restore-window.el") >>>> =C2=A0 =C2=A0(load-file ".emacs.restore-window.el"))) >>>> >>>> (add-hook 'desktop-save-hook 'kiwon/save-window-configuration) >>>> (add-hook 'desktop-after-read-hook 'kiwon/restore-window-configuration) >>>> >>>> It seems to be enough to what I wanted. :) >>> >>> Nice. I have seen revive but have not looked into it. There is also >>> winsav.el in nXhtml that can save and restore frames and windows. >>> (Martin, I am a bit surprised that you do not know about it. Didn't I >>> tell about this before?) >>> >> >> windows.el does for me. > > What is windows.el, where can we find it? > I googled it up when looking for a way to save window layout. http://linux.about.com/cs/linux101/g/windows-el.htm