Function: clojure-font-lock-def-at-point
clojure-font-lock-def-at-point is a byte-compiled function defined in
clojure-mode.el.
Signature
(clojure-font-lock-def-at-point POINT)
Documentation
Range between the top-most def* and the fourth element after POINT.
Note that this means that there is no guarantee of proper font locking in def* forms that are not at top level.
Source Code
;; Defined in ~/.emacs.d/elpa/clojure-mode-20260325.811/clojure-mode.el
(defun clojure-font-lock-def-at-point (point)
"Range between the top-most def* and the fourth element after POINT.
Note that this means that there is no guarantee of proper font
locking in def* forms that are not at top level."
(goto-char point)
(ignore-errors
(beginning-of-defun-raw))
(let ((beg-def (point)))
(when (and (not (= point beg-def))
(looking-at "(def"))
(ignore-errors
;; move forward as much as possible until failure (or success)
(forward-char)
(dotimes (_ 4)
(forward-sexp)))
(cons beg-def (point)))))