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

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

Re: MY window tree!


From: Lennart Borgman (gmail)
Subject: Re: MY window tree!
Date: Sun, 14 Jan 2007 12:45:18 +0100
User-agent: Thunderbird 1.5.0.9 (Windows/20061207)

martin rudalics wrote:
 > I have uploaded a preliminary version of winsav.el to
 >
 >   http://ourcomments.org/Emacs/DL/elisp/test/winsav.el
 >

The problem is that the split-windows below will create *new* windows
rather than "reuse" the old ones.  Hence any overlay relationships and
other window-local things get broken by this.

Yes, it creates new windows and window local things will get broken. But I do not understand what you mean with "overlay relationships" here. Emacs overlays (if that is what you mean) is tighed to the buffer, not the window.


      (dolist (subtree (cdddr saved-tree))
        (add-to-list 'wtree
                     (cons
                      (if ver
                          (split-window-vertically)
                        (split-window-horizontally))
                      subtree)
                     t)

IMO there's no way around retaining sequence numbers of windows when
saving and restoring window trees.  Hardly possible when done at the
Lisp level.


Maybe, but please be more specific about what will be missing when done on the lisp level.




reply via email to

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