On Thu, Dec 9, 2010 at 5:18 AM, Shantanu Kumar <kumar.shant...@gmail.com> wrote: > It might be possible to get other info (such as var-name, var-body > etc), but it's mostly subjective (depending on the form being passed): > > https://bitbucket.org/kumarshantanu/clj-miscutil/src/e16432dc0b6c/src/main/clj/org/bituf/clj_miscutil.clj#cl-251
Eh. I suppose you could try extracting the namespace parts from symbols embedded in the sexp. Ignore the ones that the macro knows about, introspect on the rest to see which ones :use or :refer which other ones, and whichever one is at the apex of the importation pyramid is probably the namespace containing the macro invocation, from which the filename can in turn be guessed. But that strikes me as hackish and probably somewhat brittle. -- 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