moved window functions to window-defuns.el