From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: [OT] How to save and restore window and frame layout and position of windows on monitor - session management Date: Wed, 5 Oct 2011 10:26:36 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e6551d5c66695d04ae88f778 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBMoJ-00013g-1f for emacs-orgmode@gnu.org; Wed, 05 Oct 2011 04:26:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBMoH-0008Cc-6r for emacs-orgmode@gnu.org; Wed, 05 Oct 2011 04:26:39 -0400 Received: from mail-qy0-f176.google.com ([209.85.216.176]:58655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBMoH-0008CI-2y for emacs-orgmode@gnu.org; Wed, 05 Oct 2011 04:26:37 -0400 Received: by qyk27 with SMTP id 27so1418257qyk.0 for ; Wed, 05 Oct 2011 01:26:36 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Wiegley Cc: emacs-orgmode@gnu.org --0016e6551d5c66695d04ae88f778 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Oct 4, 2011 at 9:13 PM, John Wiegley wrote: > >>>>> Rainer M Krug writes: > > > I am already using desktop-save, but I have the feeling that it sometimes > > does not work. > > Just to note (and yes, this is very OT, so I won't say more): > Well - I want to use it with org-mode (org file, R session, second org file, ...) so it is not *that* OT, but only slightly. > WorkgroupsForWindows solves a different problem than desktop-save. In > fact, > there are three aspects to the problem, best addressed by three different > packages: > > session.el -- Remembers: > - the values of global variables (like history rings) > - where point and mark were in re-opened files > - gives you a C-x C-/ binding: pop to last change > > workgroups.el -- Remembers: > - one or more window configurations per-frame > - these can be saved and reloaded > - does *not* reload files, or rerun apps, > to populate those windows > - lets you have a "base" and "active" state for > each named configuration, making it easy to > revert back to the base state for each > > desktop.el -- Remembers: > - What files were open, and which apps were running, > and tries to re-open and re-run them so that Emacs > looks just like it did when you exited. > Thanks for this info - I am using desktop.el, trying to get into workgroups.el, and have not thought about session.el yet - but I might look at it. Thanks for all the info, Rainer > I use the first two, and I've used the third, but I find that I prefer > beginning with a fresh start each time I run Emacs, rather than seeing > again > all the hundreds of files I had open yesterday. > > John > > > -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax (F): +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug --0016e6551d5c66695d04ae88f778 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Tue, Oct 4, 2011 at 9:13 PM, John Wie= gley <jwiegley@g= mail.com> wrote:
>>>>> Rainer M Krug <r.m.krug@gmail.com> writes:

> I am already using desktop-save, but I have the feeling that it someti= mes
> does not work.

Just to note (and yes, this is very OT, so I won't say more):
=

Well - I want to use it with org-mode (org file, R se= ssion, second org file, ...) so it is not *that* OT, but only slightly.

WorkgroupsForWindows solves a different problem than desktop-save. =A0In fa= ct,
there are three aspects to the problem, best addressed by three different packages:

=A0session.el =A0 =A0 =A0-- Remembers:
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0- the values of global variable= s (like history rings)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0- where point and mark were in = re-opened files
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0- gives you a C-x C-/ binding: = pop to last change

=A0workgroups.el =A0 -- Remembers:
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0- one or more window configurat= ions per-frame
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0- these can be saved and reload= ed
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0- does *not* reload files, or r= erun apps,
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0to populate those windows =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0- lets you have a "base&qu= ot; and "active" state for
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0each named configuration, m= aking it easy to
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0revert back to the base sta= te for each

=A0desktop.el =A0 =A0 =A0-- Remembers:
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0- What files were open, and whi= ch apps were running,
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0and tries to re-open and re= -run them so that Emacs
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0looks just like it did when= you exited.

Thanks for this info - I am using des= ktop.el, trying to get into workgroups.el, and have not thought about sessi= on.el yet - but I might look at it.

Thanks for all the info,

Rainer



I use the first two, and I've used the third, but I find that I prefer<= br> beginning with a fresh start each time I run Emacs, rather than seeing agai= n
all the hundreds of files I had open yesterday.

John





--
Rainer M. Krug, = PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phy= s. (Germany)

Centre of Excellence for Invasion Biology
Stellenbos= ch University
South Africa

Tel : =A0 =A0 =A0 +33 - (0)9 53 10 27 44
Cell: =A0 = =A0 =A0 +33 - (0)6 85 62 59 98
Fax (F): =A0 =A0 =A0 +33 - (0)9 58 10 27 = 44

Fax (D): =A0 =A0+49 - (0)3 21 21 25 22 44

email: =A0 =A0 = =A0Rainer@krugs.de=

Skype: =A0 =A0 =A0RMkrug

--0016e6551d5c66695d04ae88f778--