Function: cider-browse-ns--thing-at-point

cider-browse-ns--thing-at-point is a byte-compiled function defined in cider-browse-ns.el.

Signature

(cider-browse-ns--thing-at-point)

Documentation

Get the thing at point.

Return a list of the type (ns or var) and the value.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-browse-ns.el
(defun cider-browse-ns--thing-at-point ()
  "Get the thing at point.
Return a list of the type (`ns' or `var') and the value."
  (let ((ns-p (get-text-property (point) 'ns))
        (line (car (split-string (string-trim (thing-at-point 'line)) " "))))
    (if (or ns-p (string-match "\\." line))
        `(ns ,line)
      `(var ,(format "%s/%s"
                     (or (get-text-property (point) 'cider-browse-ns-current-ns)
                         cider-browse-ns-current-ns)
                     line)))))