Function: clojure--valid-unquoted-indent-spec-p

clojure--valid-unquoted-indent-spec-p is a byte-compiled function defined in clojure-mode.el.

Signature

(clojure--valid-unquoted-indent-spec-p SPEC)

Documentation

Check that the indentation SPEC is valid.

Accepts both modern tuple format and legacy positional format.

Source Code

;; Defined in ~/.emacs.d/elpa/clojure-mode-20260325.811/clojure-mode.el
(defun clojure--valid-unquoted-indent-spec-p (spec)
  "Check that the indentation SPEC is valid.
Accepts both modern tuple format and legacy positional format."
  (or (null spec)
      (integerp spec)
      (memq spec '(:form :defn))
      ;; Modern tuple format
      (and (clojure--modern-indent-spec-p spec)
           (cl-every #'clojure--valid-modern-indent-rule-p spec))
      ;; Legacy positional format
      (and (listp spec)
           (or (integerp (car spec))
               (memq (car spec) '(:form :defn))
               (listp (car spec)))
           (cl-every 'clojure--valid-unquoted-indent-spec-p spec))))