How to loop over the window list of the selected frame in Emacs Lisp?
September 15, 2023
(window-list) ;; (#<window 3 on notes.el> #<window 11 on foo> #<window 13 on bar>)
(window-list nil t) ;; (#<window 3 on notes.el> #<window 11 on foo> #<window 13 on bar> #<window 4 on *Minibuf-0*>)
(window-buffer (selected-window)) ;; #<buffer notes.el>
(dolist (w (window-list))
(message "%S" (window-buffer w)))