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

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

[elpa] externals/exwm 633065a 06/12: Don't assume order of `get-buffer-w


From: Chris Feng
Subject: [elpa] externals/exwm 633065a 06/12: Don't assume order of `get-buffer-window-list' results
Date: Sun, 19 Aug 2018 12:46:00 -0400 (EDT)

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

    Don't assume order of `get-buffer-window-list' results
    
    It only guarantees that the first result *if* the buffer appears on the
    selected window.
---
 exwm-layout.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/exwm-layout.el b/exwm-layout.el
index 18c2c27..8f3c47f 100644
--- a/exwm-layout.el
+++ b/exwm-layout.el
@@ -306,8 +306,10 @@ selected by `other-buffer'."
                 ;; windows displaying an EXWM-buffer now displayed elsewhere; 
we
                 ;; need to display with some other buffer there.
                 (setq vacated-windows
-                      (append vacated-windows (cdr (get-buffer-window-list
-                                                    (current-buffer) 'nomini 
t))))
+                      (append vacated-windows (remove
+                                               window
+                                               (get-buffer-window-list
+                                                (current-buffer) 'nomini t))))
                 ;; Note down when an EXWM-buffer is being covered by this
                 ;; buffer; we don't want it to reappear in some vacated window.
                 (let ((prev-buffer (car-safe



reply via email to

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