Function: eca-chat--on-window-size-change
eca-chat--on-window-size-change is a natively compiled function
defined in eca-chat.el.
Signature
(eca-chat--on-window-size-change FRAME)
Documentation
Debounced handler for window resize; re-evaluates table action bars.
FRAME is the resized frame.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--on-window-size-change (frame)
"Debounced handler for window resize; re-evaluates table action bars.
FRAME is the resized frame."
(dolist (win (window-list frame 'no-mini))
(let ((buf (window-buffer win)))
(when (and (buffer-live-p buf)
(eq (buffer-local-value 'major-mode buf) 'eca-chat-mode)
(buffer-local-value 'eca-chat-table-beautify buf))
(with-current-buffer buf
(when (timerp eca-chat--table-resize-timer)
(cancel-timer eca-chat--table-resize-timer))
(setq eca-chat--table-resize-timer
(run-with-idle-timer
0.3 nil
(lambda (b)
(when (buffer-live-p b)
(with-current-buffer b
(eca-chat--beautify-tables (point-min))
;; Reset truncation if no table wants it anymore
(unless (eca-table--any-truncated-p)
(setq-local truncate-lines nil)
(setq-local word-wrap t)))))
buf)))))))