From e4704479a85e3c1d02a2eb8116bc42dad63608b9 Mon Sep 17 00:00:00 2001 From: Adrián Medraño Calvo Date: Sat, 19 Mar 2016 00:00:00 +0000 Subject: Use `other-buffer' instead of "*scratch*" * exwm-workspace.el (exwm-workspace-move-window): Display `other-buffer' instead of "*scratch*" in the window whose buffer has been made floating. --- exwm-workspace.el | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/exwm-workspace.el b/exwm-workspace.el index c9a57f5a3d6d..d8e84f3f87b3 100644 --- a/exwm-workspace.el +++ b/exwm-workspace.el @@ -347,11 +347,7 @@ The optional FORCE option is for internal use only." ;; Move the X window container. (if (= index exwm-workspace-current-index) (set-window-buffer (get-buffer-window (current-buffer) t) - (or (get-buffer "*scratch*") - (progn - (set-buffer-major-mode - (get-buffer-create "*scratch*")) - (get-buffer "*scratch*")))) + (other-buffer)) (bury-buffer) ;; Clear the 'exwm-selected-window' frame parameter. (set-frame-parameter frame 'exwm-selected-window nil)) -- cgit 1.4.1