[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/exwm e470447 4/6: Use `other-buffer' instead of "*scrat

From: Chris Feng
Subject: [elpa] externals/exwm e470447 4/6: Use `other-buffer' instead of "*scratch*"
Date: Sun, 20 Mar 2016 04:05:00 +0000

branch: externals/exwm
commit e4704479a85e3c1d02a2eb8116bc42dad63608b9
Author: Adrián Medraño Calvo <address@hidden>
Commit: Adrián Medraño Calvo <address@hidden>

    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 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/exwm-workspace.el b/exwm-workspace.el
index c9a57f5..d8e84f3 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))
             ;; Clear the 'exwm-selected-window' frame parameter.
             (set-frame-parameter frame 'exwm-selected-window nil))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]