Skip to content

Fix indent spec validation for nested list specs#694

Open
bbatsov wants to merge 1 commit intomasterfrom
fix-valid-indent-call
Open

Fix indent spec validation for nested list specs#694
bbatsov wants to merge 1 commit intomasterfrom
fix-valid-indent-call

Conversation

@bbatsov
Copy link
Member

@bbatsov bbatsov commented Feb 20, 2026

Fixes #600.

clojure--valid-unquoted-indent-spec-p didn't handle nested list specs like ((:defn)) or nil elements, causing put-clojure-indent calls in .dir-locals.el (e.g. for letfn-style (1 ((:defn)) nil)) to be flagged as unsafe.

clojure--valid-unquoted-indent-spec-p rejected specs with nested lists
like letfn's (1 ((:defn)) nil), causing dir-locals eval to prompt
unnecessarily. Now handles nested list specs and nil elements.
@bbatsov bbatsov force-pushed the fix-valid-indent-call branch from a4fe2b4 to bf141b0 Compare February 20, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clojure--valid-put-clojure-indent-call-p signals error with the indentation spec used for letfn

1 participant