This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-11
Channels
- # announcements (1)
- # beginners (67)
- # calva (4)
- # cider (6)
- # clj-kondo (26)
- # clojure (61)
- # clojure-belgium (2)
- # clojure-sweden (1)
- # clojurescript (12)
- # community-development (27)
- # cursive (2)
- # datascript (4)
- # datomic (20)
- # emacs (4)
- # funcool (1)
- # graphql (11)
- # honeysql (3)
- # malli (15)
- # membrane (6)
- # nbb (4)
- # nextjournal (7)
- # pathom (8)
- # polylith (7)
- # rdf (1)
- # re-frame (1)
- # releases (2)
- # shadow-cljs (42)
- # specter (3)
- # tools-deps (25)
- # xtdb (17)
I'd often like to trace a certain set of functions---not everything in the namespace. Is there a way to do this programmatically, instead of tracing each function individually using C-c M-t v (`*cider*-toggle-trace-*var*`)?
This works I think:
(defun cider-crm-trace-vars ()
(interactive)
(mapc #'cider--toggle-trace-var
(completing-read-multiple "Trace them: "
(mapcar #'car (imenu--make-index-alist)))))
do you want to select from multiple namespaces or the current one?ah you type ,
btw to select multiple in completing-read-multiple
(whatever value crm-separator
is)
@U02CV2P4J6S Even more programmatic: (mapc #'cider--toggle-trace-var '("<f1>" "<f2>"))
. Thanks!
@U02CV2P4J6S Exactly.