help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: customizing emacs windows


From: Lennart Borgman (gmail)
Subject: Re: customizing emacs windows
Date: Thu, 24 May 2007 15:55:24 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666

Eli Zaretskii wrote:
Date: Thu, 24 May 2007 13:22:59 +0200
From: "Lennart Borgman (gmail)" <address@hidden>
CC:  address@hidden

Eli Zaretskii wrote:
Date: Thu, 24 May 2007 12:06:41 +0200
From: "Lennart Borgman (gmail)" <address@hidden>
CC:  address@hidden

It looks like winner.el and winsav.el complement each other.
To me it looks like saving the window configuration to a file is a
natural extension of a package that lets you save and restore window
configuration during a single session.

Absolutely, from a logical point of view. Maybe also from a code point of view, but I doubt that a bit in this case. The data structures that winner.el is using is perhaps not feasable for save/restore, but maybe you think differently?

Lisp data structures are easily converted into plain text, and then a
buffer which holds that text can be saved to a disk file.  To restore,
you need only invoke the Lisp reader on the saved text.  How difficult
can that be?  There are already quite a few packages that do similar
things, like saveplace, for example.


That is not exactly what I meant. I meant if the data structures contains information that are useful for save/restore.

But I did not look close at it. The data structures in winner.el may be that too. I took a look at winner-currents and maybe that contains the information needed.

However I do not know if there is a way to save it. It contains the information needed in something that looks like #<window-configuration> when trying to print it. Is there a way to print this so that it can be saved?

BTW, winsav.el has a little bit different focus, solving a problem that I could not find a way to solve easily: Injection of a window configuration into a window. The ability to save and restore window configuration on a frame is just a byproduct.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]