Function: cider-xref-act-on-symbol

cider-xref-act-on-symbol is a byte-compiled function defined in cider-xref.el.

Signature

(cider-xref-act-on-symbol SYMBOL)

Documentation

Apply selected action on SYMBOL.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-xref.el
(defun cider-xref-act-on-symbol (symbol)
  "Apply selected action on SYMBOL."
  (let* ((first-action-key (car (car cider-xref-actions)))
         (action-key (if (= 1 (length cider-xref-actions))
                         first-action-key
                       (completing-read (format "Choose action to apply to `%s` (default %s): "
                                                symbol first-action-key)
                                        cider-xref-actions nil nil nil nil first-action-key)))
         (action-fn (cdr (assoc action-key cider-xref-actions))))
    (if action-fn
        (funcall action-fn symbol)
      (user-error "Unknown action `%s`" action-key))))