From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: customizing emacs windows
Date: Thu, 24 May 2007 21:29:00 +0200 [thread overview]
Message-ID: <4655E77C.5010909@gmail.com> (raw)
In-Reply-To: <uhcq2i9pg.fsf@gnu.org>
Eli Zaretskii wrote:
>> Date: Thu, 24 May 2007 15:55:24 +0200
>> From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
>> CC: help-gnu-emacs@gnu.org
>>
>> 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?
>
> winner.el uses functions from ring.el to maintain its info. The
> various print functions are your friends. Reading those hashed
> objects might be a little tricky, but you could perhaps use the
> technique similar to desktop.el to output, instead of the objects,
> function calls that create the objects.
I think it is only you get back from (current-window-configuration) that
holds the information that winner.el uses to restore the windows.
Everything is there so winner.el does not have to do very much.
Unfortunately you can not investigate the value of this and it prints
just as #<window-configuration>. I think I remember now that we (I do
not know if you were involved) discussed this on the devel list.
Because of this I use (window-tree) instead which gives the necessary
window structure information.
For now I can not see any other way to save the window configuration
than something similar to what I have done in winsav.el.
It is however complicated to do this on the lisp level (as in
winsav.el), the window layout is probably more easier handled on the C
level, like in set-window-configuration. So for a long term solution I
would think it is much better to enhance the printed representation of
the value of (current-window-configuration) so that it could be used
together with (set-window-configuration) for save/restore from file. A
bit more than the printed representation must be added of course, but I
guess that is clear.
Eli, I would be glad if you put this in etc/TODO. I think that at the
splitting of the top level in window tree is also a matter to consider
there. (That this can not be done was the main reason for writing
winsav.el.)
next prev parent reply other threads:[~2007-05-24 19:29 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-23 17:04 customizing emacs windows Ivan
2007-05-23 22:24 ` Lennart Borgman (gmail)
2007-05-24 7:32 ` Eli Zaretskii
2007-05-24 10:06 ` Lennart Borgman (gmail)
2007-05-24 10:49 ` Eli Zaretskii
2007-05-24 11:22 ` Lennart Borgman (gmail)
2007-05-24 13:21 ` Eli Zaretskii
2007-05-24 13:55 ` Lennart Borgman (gmail)
2007-05-24 14:21 ` Eli Zaretskii
2007-05-24 19:29 ` Lennart Borgman (gmail) [this message]
[not found] ` <mailman.1130.1179991947.32220.help-gnu-emacs@gnu.org>
2007-05-24 9:41 ` Ivan
2007-05-24 10:00 ` Jason Rumney
2007-05-24 11:06 ` Lennart Borgman (gmail)
2007-05-25 5:13 ` Tim X
2007-05-25 10:09 ` Ivan
2007-05-25 11:02 ` Ivan
2007-05-26 3:29 ` Tim X
2007-05-26 9:02 ` Ivan
2007-05-26 9:45 ` Leo
2007-05-26 10:12 ` Peter Dyballa
[not found] ` <mailman.1273.1180174364.32220.help-gnu-emacs@gnu.org>
2007-05-26 11:34 ` Ivan
[not found] ` <mailman.1268.1180172850.32220.help-gnu-emacs@gnu.org>
2007-05-26 11:35 ` Ivan
2007-05-26 10:18 ` Petter Gustad
2007-05-26 13:50 ` Tim X
2007-05-24 0:28 ` Lennart Borgman (gmail)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4655E77C.5010909@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.