Functions running window-configuration-hook (M-x reimplement-wheel)

Johann "Myrkraverk" Oskarsson <[email protected]> Mon, 14 Jun 2004 15:33:22 +0000
Newsgroups gmane.emacs.xemacs.design
Message-ID <[email protected]>
Hi,

I'm compiling a *complete* list of all functions that should run the
`window-configuration-hook'.

On the C level, I've selected (so far):

(delete-window)
(delete-other-windows)
(set-window-buffer)
(split-window) -- indirectly, calls set-window-buffer

For the following functions (in C):

(enlarge-window)
(enlarge-window-pixels)
(shrink-window)
(shrink-window-pixels)

I'm not sure whether I should include the run hooks, or put it in
change_window_height, which is not visible on the lisp level, and all
of the above functions call.

Currently, I'm removing the lisp level run-hooks -- I believe all of
them call some C indirectly ;)  (but I may put some in later, again)

I'm also open to sugestions whether window-configuration-hook
functions should get the changed frame as an argument?

I don't think it's wise to try and garantee any sort of order when the
hook is run, so *when* is not an issue for me, only that it's after
the changes have been made, but (maybe) before some (lisp level)
functions finish doing stuff.

There is also the issue of infinite loops, but I don't think I should
even try to safeguard that.  Let them who use it take the
responsibilty.


Does anyone care to comment?


Have fun,

Johann

-- 
Windows? I look out of windows.