window-conf and save functionality for none perspective, try to support older emacs version by avoiding cl-flet