From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: session management with desktop and window configuration Date: Thu, 31 Dec 2009 17:22:38 +0100 Message-ID: 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 1262276618 16099 80.91.229.12 (31 Dec 2009 16:23:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Dec 2009 16:23:38 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Richard Riley Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 31 17:23:30 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 1NQNoA-0004l6-By for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Dec 2009 17:23:30 +0100 Original-Received: from localhost ([127.0.0.1]:41776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQNoA-0005wI-LX for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Dec 2009 11:23:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQNnl-0005w5-W3 for help-gnu-emacs@gnu.org; Thu, 31 Dec 2009 11:23:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQNnh-0005vb-KU for help-gnu-emacs@gnu.org; Thu, 31 Dec 2009 11:23:05 -0500 Original-Received: from [199.232.76.173] (port=48083 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQNnh-0005vR-El for help-gnu-emacs@gnu.org; Thu, 31 Dec 2009 11:23:01 -0500 Original-Received: from mail-yx0-f191.google.com ([209.85.210.191]:54972) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NQNnf-0001ug-8w for help-gnu-emacs@gnu.org; Thu, 31 Dec 2009 11:23:00 -0500 Original-Received: by yxe29 with SMTP id 29so36589374yxe.14 for ; Thu, 31 Dec 2009 08:22:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=elKP/uUBmCTWTCqUfxd9ns77FlvWJhISzcrcsOFJJjA=; b=N6dQgnofVwXNbTVKxb4xGfeYqqi0TcNSMTBpA9dZTC2ZJQ4G9YHJbAyLyH3LuNeTZW 7dvXD5TTdFIzWSG/XPP5wcHXHyIIsTSOqp6JMGIo8782v9qqC5vFUJDfOfsCd21RPBbm cdFp8EP/iLuvfjXqmkGI6PnA3kUeMNrzxvymI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=fn4c1DFYUi6mpeveQ+TFQ0WPxIz3sYW/MdecdxhEWZDrcLLhgEAO/ZYSO6TZ55JKSn bcw0CE60ilVF63dYAp3fmA/IVbwybrWU2ccDRyve+CLmbmUl4goPncIppJ4ZTpio2x0P cZC4wgR1ipyKsPsxcP6mWGwnjJfZDfebCj2aM= Original-Received: by 10.101.105.25 with SMTP id h25mr29273963anm.63.1262276578111; Thu, 31 Dec 2009 08:22:58 -0800 (PST) In-Reply-To: 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:70980 Archived-At: On Thu, Dec 31, 2009 at 5:16 PM, Richard Riley wrote= : > 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.rest= ore-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?