Open
Description
(clojure--valid-put-clojure-indent-call-p '(put-clojure-indent 'letfn '(1 ((:defn)) nil)))
;; => *** Eval error *** Unrecognized put-clojure-indent call: (put-clojure-indent 'letfn '(1 ((:defn)) nil))
I was trying to use the same indentation spec for clojure.tools.macro/macrolet
. In my .dir-locals.el
I have
((clojure-mode . ((eval . (put-clojure-indent 'tools.macro/macrolet '(1 ((:defn)) nil))))))
put-clojure-indent
has the safe-local-eval-function
property clojure--valid-put-clojure-indent-call-p
, i.e. that form in my .dir-locals.el
would be considered safe to eval without prompting so long as clojure--valid-put-clojure-indent-call-p
returned t
when passed that form. It doesn't, however -- it signals an error.
The form seems to be correct as far as I can tell -- If I manually eval (put-clojure-indent 'tools.macro/macrolet '(1 ((:defn)) nil))
then it works as expected. So I'm assuming there's a bug in clojure--valid-put-clojure-indent-call-p