Function: aw--pop-window
aw--pop-window is a byte-compiled function defined in ace-window.el.
Signature
(aw--pop-window)
Documentation
Return the removed top of aw--window-ring.
Source Code
;; Defined in ~/.emacs.d/elpa/ace-window-20220911.358/ace-window.el
(defun aw--pop-window ()
"Return the removed top of `aw--window-ring'."
(let (res)
(condition-case nil
(while (or (not (window-live-p
(setq res (ring-remove aw--window-ring 0))))
(equal res (selected-window))))
(error
(if (= (length (aw-window-list)) 2)
(progn
(other-window 1)
(setq res (selected-window)))
(error "No previous windows stored"))))
res))