From 25e4e110cce4d5a8fb6c9670a04c5a1a217c4ff4 Mon Sep 17 00:00:00 2001 From: Constantine Vetoshev Date: Mon, 25 Feb 2019 11:14:50 -0800 Subject: Fix error when persp-remove-buffer gets nil as argument. --- perspective.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perspective.el b/perspective.el index 1f6f1fb..3bab87b 100644 --- a/perspective.el +++ b/perspective.el @@ -625,7 +625,7 @@ Prefers perspectives in the selected frame." See also `persp-switch' and `persp-add-buffer'." (interactive "bRemove buffer from perspective: \n") - (setq buffer (get-buffer buffer)) + (setq buffer (when buffer (get-buffer buffer))) (cond ((not (buffer-live-p buffer))) ;; Only kill the buffer if no other perspectives are using it ((not (persp-buffer-in-other-p buffer)) -- cgit v1.0