Function: clojure-get-indent-spec
clojure-get-indent-spec is a byte-compiled function defined in
clojure-mode.el.
Signature
(clojure-get-indent-spec SYM)
Documentation
Return the modern-format indent spec for the symbol SYM.
SYM is a symbol or a string. Returns nil if no spec is found.
If only a legacy-format spec exists, it is converted to modern format.
Source Code
;; Defined in ~/.emacs.d/elpa/clojure-mode-20260325.811/clojure-mode.el
(defun clojure-get-indent-spec (sym)
"Return the modern-format indent spec for the symbol SYM.
SYM is a symbol or a string. Returns nil if no spec is found.
If only a legacy-format spec exists, it is converted to modern format."
(let* ((sym-name (if (stringp sym) sym (symbol-name sym)))
(sym-obj (intern-soft sym-name)))
(or (and sym-obj (get sym-obj 'clojure-indent-spec))
(let ((legacy (and sym-obj (get sym-obj 'clojure-indent-function))))
(when (and legacy (not (functionp legacy)))
(clojure--indent-spec-to-modern legacy))))))