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

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

[elpa] master 6053545 17/68: Respect `aw-scope' when jumping with `next-


From: Oleh Krehel
Subject: [elpa] master 6053545 17/68: Respect `aw-scope' when jumping with `next-window'
Date: Sat, 21 Mar 2015 19:06:52 +0000

branch: master
commit 60535456ee83d5b1888eaba396fcc6b14dedd812
Author: M. Tong <address@hidden>
Commit: M. Tong <address@hidden>

    Respect `aw-scope' when jumping with `next-window'
---
 ace-window.el |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ace-window.el b/ace-window.el
index 0f4458b..1fac65c 100644
--- a/ace-window.el
+++ b/ace-window.el
@@ -131,6 +131,10 @@ HANDLER is a function that takes a window argument."
        (lambda ()
        (interactive)
        (let* ((ace-jump-mode-scope aw-scope)
+              (next-window-scope
+               (cl-case aw-scope
+                 ('global 'visible)
+                 ('frame 'frame)))
               (visual-area-list
                (sort (aw-list-visual-area)
                      'aw-visual-area<)))
@@ -138,7 +142,7 @@ HANDLER is a function that takes a window argument."
            (0)
            (1)
            (2
-            (,handler (next-window nil nil 'visible)))
+            (,handler (next-window nil nil next-window-scope)))
            (t
             (let ((candidate-list
                    (mapcar (lambda (va)



reply via email to

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