Function: ghostel--windows

ghostel--windows is a natively compiled function defined in ghostel.el.

Signature

(ghostel--windows &optional BUFFER ALL-FRAMES)

Documentation

Return Ghostel windows, optionally limited to BUFFER.

ALL-FRAMES has the same meaning as in walk-windows. Windows on the daemon's dummy initial frame are excluded.

Source Code

;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--windows (&optional buffer all-frames)
  "Return Ghostel windows, optionally limited to BUFFER.
ALL-FRAMES has the same meaning as in `walk-windows'.
Windows on the daemon's dummy initial frame are excluded."
  (let (windows)
    (walk-windows
     (lambda (window)
       (let ((window-buffer (window-buffer window)))
         (when (and (or (null buffer) (eq window-buffer buffer))
                    (not (ghostel--daemon-dummy-frame-p (window-frame window)))
                    (with-current-buffer window-buffer
                      (derived-mode-p 'ghostel-mode)))
           (push window windows))))
     'no-minibuf all-frames)
    (nreverse windows)))