Function: cider-tree-view-visit

cider-tree-view-visit is an interactive and byte-compiled function defined in cider-tree-view.el.

Signature

(cider-tree-view-visit &optional EVENT)

Documentation

Run the primary action of the node 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-tree-view.el
(defun cider-tree-view-visit (&optional event)
  "Run the primary action of the node 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 ((node (cider-tree-view-node-at-point)))
    (cond
     ((null node) (user-error "No node here"))
     ((cider-tree-view-node-on-visit node) (funcall (cider-tree-view-node-on-visit node)))
     (t (user-error "Nothing to visit here")))))