Function: clojure--find-indent-spec

clojure--find-indent-spec is a byte-compiled function defined in clojure-mode.el.

Signature

(clojure--find-indent-spec &optional FUNCTION-NAME)

Documentation

Return the indent spec that applies to current sexp.

If clojure-use-backtracking-indent is non-nil, also do backtracking up to a higher-level sexp in order to find the spec. FUNCTION-NAME, if provided, is used instead of computing the symbol at point.

Source Code

;; Defined in ~/.emacs.d/elpa/clojure-mode-20260325.811/clojure-mode.el
(defun clojure--find-indent-spec (&optional function-name)
  "Return the indent spec that applies to current sexp.
If `clojure-use-backtracking-indent' is non-nil, also do
backtracking up to a higher-level sexp in order to find the
spec.  FUNCTION-NAME, if provided, is used instead of computing
the symbol at point."
  (if clojure-use-backtracking-indent
      (save-excursion
        (clojure--find-indent-spec-backtracking))
    (let ((function (or function-name (thing-at-point 'symbol))))
      (when function
        (clojure--get-indent-method function)))))