feature/workspaces: fix buffer getting killed across workspaces

This commit is contained in:
Henrik Lissner 2018-03-12 13:33:50 -04:00
parent b082ba6460
commit a17fc86761
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 8 additions and 0 deletions

View file

@ -453,6 +453,12 @@ the next."
;; Hooks
;;
;;;###autoload
(defun +workspaces|protect-buffers-in-other-persps ()
"Return nil if this buffer is present in other perspectives/workspaces (bury
it, don't kill it)."
(not (persp-other-persps-with-buffer-except-nil (current-buffer))))
;;;###autoload
(defun +workspaces|delete-associated-workspace (&optional frame)
"Delete workspace associated with current frame.