mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 13:33:03 +00:00
avy.el (avy-window-list): Fixup last commit
* avy.el (avy-window-list): Update. Fixes #45
This commit is contained in:
parent
b288c69aa0
commit
92a7884d9c
18
avy.el
18
avy.el
@ -250,13 +250,17 @@ multiple DISPLAY-FN invokations."
|
|||||||
;;** Rest
|
;;** Rest
|
||||||
(defun avy-window-list ()
|
(defun avy-window-list ()
|
||||||
"Return a list of windows depending on `avy-all-windows'."
|
"Return a list of windows depending on `avy-all-windows'."
|
||||||
(cl-case avy-all-windows
|
(cond ((eq avy-all-windows 'all-frames)
|
||||||
(all-frames
|
(cl-mapcan #'window-list (frame-list)))
|
||||||
(cl-mapcan #'window-list (frame-list)))
|
|
||||||
(this-frame
|
((eq avy-all-windows t)
|
||||||
(window-list))
|
(window-list))
|
||||||
(t
|
|
||||||
(list (selected-window)))))
|
((null avy-all-windows)
|
||||||
|
(list (selected-window)))
|
||||||
|
|
||||||
|
(t
|
||||||
|
(error "Unrecognized option: %S" avy-all-windows))))
|
||||||
|
|
||||||
(defmacro avy-dowindows (flip &rest body)
|
(defmacro avy-dowindows (flip &rest body)
|
||||||
"Depending on FLIP and `avy-all-windows' run BODY in each or selected window."
|
"Depending on FLIP and `avy-all-windows' run BODY in each or selected window."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user