Function: eca-chat-inline--on-source-buffer-killed

eca-chat-inline--on-source-buffer-killed is a natively compiled function defined in eca-chat-inline.el.

Signature

(eca-chat-inline--on-source-buffer-killed)

Documentation

Clean up the inline overlays of a source buffer being killed.

Releases their temp buffers and routing entries, which outlive the overlays otherwise.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-inline.el
(defun eca-chat-inline--on-source-buffer-killed ()
  "Clean up the inline overlays of a source buffer being killed.
Releases their temp buffers and routing entries, which outlive
the overlays otherwise."
  (save-restriction
    (widen)
    (dolist (ov (overlays-in (point-min) (point-max)))
      (when (eq (overlay-get ov 'category) 'eca-chat-inline)
        (eca-chat-inline--delete-overlay ov)))))