Function: ghostel--around-font-scale
ghostel--around-font-scale is a natively compiled function defined in
ghostel.el.
Signature
(ghostel--around-font-scale FN ARGS &optional BUFFER)
Documentation
Resize and re-anchor Ghostel windows around font scaling by FN with ARGS.
When BUFFER is non-nil, only refit windows showing BUFFER.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--around-font-scale (fn args &optional buffer)
"Resize and re-anchor Ghostel windows around font scaling by FN with ARGS.
When BUFFER is non-nil, only refit windows showing BUFFER."
(let ((anchored (ghostel--window-buffer-pairs
(ghostel--anchored-windows buffer 'visible))))
(prog1 (apply fn args)
(dolist (window (ghostel--windows buffer 'visible))
(when (window-live-p window)
(with-current-buffer (window-buffer window)
(ghostel--adjust-size window t))))
(dolist (entry anchored)
(when (ghostel--window-buffer-pair-live-p entry)
(ghostel--anchor-window (car entry)))))))