Function: cider-try-symbol-at-point

cider-try-symbol-at-point is a byte-compiled function defined in cider-common.el.

Signature

(cider-try-symbol-at-point PROMPT CALLBACK)

Documentation

Call CALLBACK with symbol at point.

On failure, read a symbol name using PROMPT and call CALLBACK with that.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-common.el
(defun cider-try-symbol-at-point (prompt callback)
  "Call CALLBACK with symbol at point.
On failure, read a symbol name using PROMPT and call CALLBACK with that."
  (condition-case nil
      (funcall callback (cider--kw-to-symbol (cider-symbol-at-point 'look-back)))
    (error (funcall callback (cider-read-from-minibuffer prompt)))))