emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/exwm 1d43515 59/64: Allow switch to normal buffers in e


From: Chris Feng
Subject: [elpa] externals/exwm 1d43515 59/64: Allow switch to normal buffers in exwm-workspace-switch-to-window
Date: Thu, 17 Sep 2015 23:18:12 +0000

branch: externals/exwm
commit 1d435157d3c9b3f807aca55bb4e6d16d5cb6c5df
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>

    Allow switch to normal buffers in exwm-workspace-switch-to-window
    
    * exwm-workspace.el (exwm-workspace-switch-to-window): Allow switch to 
normal
      buffers.
---
 exwm-workspace.el |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/exwm-workspace.el b/exwm-workspace.el
index 5fae713..d2619ee 100644
--- a/exwm-workspace.el
+++ b/exwm-workspace.el
@@ -219,10 +219,11 @@ The optional FORCE option is for internal use only."
   (let ((buffer (read-buffer "Switch to window: " nil t)))
     (when buffer
       (with-current-buffer buffer
-        (when (and (eq major-mode 'exwm-mode)
-                   (not (eq exwm--frame exwm-workspace--current)))
-          (exwm-workspace-move-window exwm-workspace-current-index
-                                      exwm--id)))))
+        (if (and (eq major-mode 'exwm-mode)
+                 (not (eq exwm--frame exwm-workspace--current)))
+            (exwm-workspace-move-window exwm-workspace-current-index
+                                        exwm--id)
+          (switch-to-buffer buffer)))))
   ;; Hide buffers on other workspaces
   (dolist (pair exwm--id-buffer-alist)
     (with-current-buffer (cdr pair)



reply via email to

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