Function: cider-eldoc-info-at-point

cider-eldoc-info-at-point is a byte-compiled function defined in cider-eldoc.el.

Signature

(cider-eldoc-info-at-point K)

Documentation

Compute eldoc info at point and call K with the sexp-eldoc plist (or nil).

First go to the beginning of the sexp and check if the eldoc is to be considered (i.e sexp is a method call) and not a map or vector literal. Then go back to the point and look up its eldoc.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-eldoc.el
(defun cider-eldoc-info-at-point (k)
  "Compute eldoc info at point and call K with the sexp-eldoc plist (or nil).
First go to the beginning of the sexp and check if the eldoc is to be
considered (i.e sexp is a method call) and not a map or vector literal.
Then go back to the point and look up its eldoc."
  (save-excursion
    (if (cider-in-comment-p)
        (funcall k nil)
      (let ((current-point (point)))
        (cider-eldoc-beginning-of-sexp)
        (if (member (or (char-before (point)) 0) '(?\" ?\{ ?\[))
            (funcall k nil)
          (goto-char current-point)
          (let ((thing (cider-symbol-at-point)))
            (cider-eldoc-info-async
             (cider--eldoc-remove-dot thing)
             (lambda (eldoc-info)
               (funcall k (when eldoc-info
                            `("eldoc-info" ,eldoc-info
                              "thing" ,thing
                              "pos" 0)))))))))))