Function: cider-trace-toggle-fold

cider-trace-toggle-fold is an interactive and byte-compiled function defined in cider-tracing.el.

Signature

(cider-trace-toggle-fold &optional EVENT)

Documentation

Fold or unfold the children of the trace call on the current line.

EVENT is the mouse event, when invoked with the mouse.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-tracing.el
(defun cider-trace-toggle-fold (&optional event)
  "Fold or unfold the children of the trace call on the current line.
EVENT is the mouse event, when invoked with the mouse."
  (interactive (list last-nonmenu-event))
  (when (mouse-event-p event)
    (mouse-set-point event))
  (let* ((id (get-text-property (point) 'cider-trace-call-id))
         (ov (and id cider-trace--folds (gethash id cider-trace--folds))))
    (if (not ov)
        (user-error "No foldable call on this line")
      (overlay-put ov 'display
                   (unless (overlay-get ov 'display)
                     cider-trace--fold-placeholder)))))