Counter-example: one could write if-authenticated macro, which will take 
fixed number of args, but should be indented as normal if.

суббота, 31 марта 2012 г. 3:07:23 UTC+6 пользователь Cedric Greevey написал:
>
> On Fri, Mar 30, 2012 at 1:26 PM, Vinzent <ru.vinz...@gmail.com> wrote:
> > Another idea is to put :indentation metadata on vars, so user-defined 
> macros
> > could be indented properly. Currently I have (define-clojure-indent ...)
> > with a number of forms in my emacs config file, and it seems to be pretty
> > common solution. It'd be nice to replace this hack with an 
> IDE-independent
> > way to control the indentation.
> >
> > Phil, what do you think? Could it be experimentally implemented in
> > clojure-mode?
>
> My thought on this? Just look for the macro to have a rest arg.
> Function argument indentation should be used for non-rest macro args,
> and body indentation for macro rest args.
>

-- 
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

Reply via email to