-
I have an interesting issue where it appears rules from my {:fn-map {"defmacro" [:arg1-force-nl-body {:list {:indent-arg 2}}]
"defn" "defmacro"
"defn-" "defmacro"}
:list {:indent-arg 1}} Full
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Thanks for asking. The problem here is that in your
Because of number 2 above, there is no difference between "body" functions and "argument" functions when inside a The real question here is: what did you intend by the Thank you for the entire options map. As an aside, there is no need for So, let me know what you were trying to accomplish, and we'll figure it out. I'm still pondering the examples/documentation thing you proposed. I hope to respond to that tomorrow or Monday. Thanks for asking! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the explanation. I'm sitting here saying "but, but, it does that already". So I'm probably still not getting some aspect of this that is obvious to you but not to me. I have assumed that the above example is what you want and is "consistent" in the way you want. If that is not what you want, then that would explain my confusion. Anyway, here is what I get when I use your example and your option map (slightly changed). Here is your options map with the
Here is zprint formatting your example(s) with a small addition:
Whether or not they have a doc-string, they come out the same. As least they are the same to me. The final Anyway, you said you wanted the formatting to be consistent whether or not there was a docstring. Which it seems to me that it is. So there is probably something important which I am missing. I'd be interested in some more details when you have a chance. Thanks. |
Beta Was this translation helpful? Give feedback.
Thanks for the explanation. I'm sitting here saying "but, but, it does that already". So I'm probably still not getting some aspect of this that is obvious to you but not to me. I have assumed that the above example is what you want and is "consistent" in the way you want. If that is not what you want, then that would explain my confusion.
Anyway, here is what I get when I use your example and your option map (slightly changed).
Here is your options map with the
:list {:indent-arg 2}
removed from the:fn-map
fordefmacro
(and thusdefn
anddefn-
):