Function: eca-chat--render-nested-block
eca-chat--render-nested-block is a natively compiled function defined
in eca-chat-expandable.el.
Signature
(eca-chat--render-nested-block PARENT-OV CHILD-SPEC)
Documentation
Render a nested block CHILD-SPEC within PARENT-OV's content area.
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--render-nested-block (parent-ov child-spec)
"Render a nested block CHILD-SPEC within PARENT-OV's content area."
(-let* (((&plist :id id :label label :content content :icon-face icon-face) child-spec)
(parent-content-ov (overlay-get parent-ov 'eca-chat--expandable-content-ov-content))
(label-indent eca-chat--expandable-content-base-indent)
(icons (eca-chat--make-expandable-icons icon-face label-indent)))
(save-excursion
(goto-char (overlay-end parent-content-ov))
(unless (bolp) (eca-chat--insert "\n"))
(eca-chat--insert-expandable-block id label content
(car icons) (cdr icons)
eca-chat--expandable-content-nested-indent
(list :parent-id (overlay-get parent-ov 'eca-chat--expandable-content-id)
:label-indent label-indent))
;; Paint label's line-prefix with parent's background when parent is open
(when-let* ((child-ov (eca-chat--get-expandable-content id)))
(eca-chat--paint-nested-label child-ov)))))