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 22:35:24 +0100
User-agent: Thunderbird 1.5.0.9 (Windows/20061207)

martin rudalics wrote:
 > 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.

Juanma explained that already.  It can be done as

(dolist (overlay (overlays-in (point-min) (point-max)))
  (when (eq (overlay-get overlay 'window) old-window)
     (overlay-put overlay 'window new-window)))

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

On the Lisp level it might be difficult to handle `get-lru-window',
`buffer-display-count', `buffer-display-time', and the `keep-margins'
argument of `set-window-buffer'.  It should be possible to handle
`window-dedicated-p', `window-scroll-bars', `window-fringes' but I don't
remember them all.


I believe the new version is pretty useful:

  http://ourcomments.org/Emacs/DL/elisp/test/winsav.el

Saving and restoring properties is rather straightforward. Is there still any reason to have this in C?




reply via email to

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