Artur Malabarba <arturmalaba...@gmail.com> writes: > You're right about indentation depending on the code being evaluated, but > that's still better than nothing. ☺ > > People who do a significant amount of coding without a live session can > still manually configure indentation like they currently do, and they're no > worse off. > > The editor can even parse the metadata map present in the defn/defmacro, so > as to provide some "offline" support (though I don't foresee Cider doing > that).
It's worth being explicit in the spec, then, about whether there is an expectation that the indentation declaration is, itself, evaluated or not. IIRC, the (declare (indent 1)) forms of Emacs-Lisp are *not* evaluated by the defun/defmacro macros, so are easy enough to pull out of code. If there are eval'd then, it becomes impossible to do this with any accuracy. Specifically wrt to CIDER, the easier solution is the cache the metadata map each time it is used. I suspect that CIDER would need this for performance -- I mean indentation requiring ongoing evaluation in Clojure is likely to be slow. If this cache were persisted between Emacs sessions then the problem largely goes away. Basically, I am suggesting automatic manual configuration if you will excuse the oxymoron. Phil -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.