Function: eca-chat--destroy-nested-blocks

eca-chat--destroy-nested-blocks is a natively compiled function defined in eca-chat-expandable.el.

Signature

(eca-chat--destroy-nested-blocks PARENT-ID)

Documentation

Remove all nested block overlays that belong to PARENT-ID.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-expandable.el
(defun eca-chat--destroy-nested-blocks (parent-id)
  "Remove all nested block overlays that belong to PARENT-ID."
  (dolist (ov (overlays-in (point-min) (point-max)))
    (when (string= parent-id (overlay-get ov 'eca-chat--expandable-content-parent-id))
      (when-let* ((content-ov (overlay-get ov 'eca-chat--expandable-content-ov-content)))
        (delete-overlay content-ov))
      (when-let* ((id (overlay-get ov 'eca-chat--expandable-content-id)))
        (remhash id eca-chat-expandable--id->ov))
      (delete-overlay ov))))