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

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

[elpa] externals/ace-window 94986cb 65/92: ace-window.el (aw-ignored-p):


From: Stefan Monnier
Subject: [elpa] externals/ace-window 94986cb 65/92: ace-window.el (aw-ignored-p): Don't ignore window if it's selected
Date: Wed, 17 Mar 2021 18:39:23 -0400 (EDT)

branch: externals/ace-window
commit 94986cb687e9f1e88d13350c52c7a0f1bafcbc57
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    ace-window.el (aw-ignored-p): Don't ignore window if it's selected
    
    If the current window is on `aw-ignored-buffers', and it's currently
    selected, and `aw-ignore-current' is nil, the current window is not to
    be ignored.
    
    Fixes #144
---
 ace-window.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ace-window.el b/ace-window.el
index d25d71e..2bb0e77 100644
--- a/ace-window.el
+++ b/ace-window.el
@@ -216,7 +216,9 @@ or
            ;; Ignore major-modes and buffer-names in `aw-ignored-buffers'.
            (or (memq (buffer-local-value 'major-mode (window-buffer window))
                      aw-ignored-buffers)
-               (member (buffer-name (window-buffer window)) 
aw-ignored-buffers)))
+               (member (buffer-name (window-buffer window)) 
aw-ignored-buffers))
+           (or aw-ignore-current
+               (not (equal window (selected-window)))))
       ;; ignore child frames
       (and (fboundp 'frame-parent) (frame-parent (window-frame window)))
       ;; Ignore selected window if `aw-ignore-current' is non-nil.



reply via email to

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