backing up...

added detach-window defun.