avy.el (avy-window-list): Fixup last commit

* avy.el (avy-window-list): Update.

Fixes #45
This commit is contained in:
Oleh Krehel 2015-05-18 16:31:46 +02:00
parent b288c69aa0
commit 92a7884d9c

12
avy.el
View File

@ -250,13 +250,17 @@ multiple DISPLAY-FN invokations."
;;** Rest
(defun avy-window-list ()
"Return a list of windows depending on `avy-all-windows'."
(cl-case avy-all-windows
(all-frames
(cond ((eq avy-all-windows 'all-frames)
(cl-mapcan #'window-list (frame-list)))
(this-frame
((eq avy-all-windows t)
(window-list))
((null avy-all-windows)
(list (selected-window)))
(t
(list (selected-window)))))
(error "Unrecognized option: %S" avy-all-windows))))
(defmacro avy-dowindows (flip &rest body)
"Depending on FLIP and `avy-all-windows' run BODY in each or selected window."