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
12
avy.el
12
avy.el
@ -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."
|
||||
|
Loading…
x
Reference in New Issue
Block a user