Hi,
First commit adds support for named hooks, so one can write (add-hook #'f :foo (fn [f x] ...)). Second one fixes test-clear-hooks test case, which was failing for me because metadata on function contained some clojure's keys. In the third I've removed stuff with skipped test, because it was throwing an exception and honestly I don't get how it's supposed to work. 4th commit updates clojure to 1.4 and replaces binding with with-redefs. Finally, the last one contains misc refactorings. Could you please review this changes and, if they are ok, release a new version?
Hi, First commit adds support for named hooks, so one can write
(add-hook #'f :foo (fn [f x] ...))
. Second one fixestest-clear-hooks
test case, which was failing for me because metadata on function contained some clojure's keys. In the third I've removed stuff with skipped test, because it was throwing an exception and honestly I don't get how it's supposed to work. 4th commit updates clojure to 1.4 and replacesbinding
withwith-redefs
. Finally, the last one contains misc refactorings. Could you please review this changes and, if they are ok, release a new version?