Function: cider-tap
cider-tap is an autoloaded, interactive and byte-compiled function
defined in cider-tap.el.
Signature
(cider-tap)
Documentation
Open a buffer that streams values sent to tap>.
Any (tap> value) in your code - or the inspector's tap commands - shows up
here; press RET (cider-tap-inspect-at-point) on an entry to
inspect it. Killing the buffer stops the streaming.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-tap.el
;;;###autoload
(defun cider-tap ()
"Open a buffer that streams values sent to `tap>'.
Any `(tap> value)' in your code - or the inspector's tap commands - shows up
here; press \\<cider-tap-mode-map>\\[cider-tap-inspect-at-point] on an entry to
inspect it. Killing the buffer stops the streaming."
(interactive)
(let ((connection (cider-current-repl nil 'ensure))
(buffer (get-buffer-create cider-tap-buffer)))
(with-current-buffer buffer
(unless (eq major-mode 'cider-tap-mode)
(cider-tap-mode))
;; When reopening against a different (e.g. reconnected) REPL, the old
;; subscription belongs to a connection we no longer track. Drop it -
;; best-effort unsubscribing from the old REPL if it's still live - so a
;; fresh subscription gets established below instead of the buffer going
;; silent.
(unless (eq cider-tap--repl connection)
(cider-tap--unsubscribe)
(setq cider-tap--subscription nil))
(setq cider-tap--repl connection)
;; Pin the buffer to its REPL so the inspector opened from here resolves
;; to the same connection.
(setq-local cider--pinned-repl-buffer connection)
(unless cider-tap--subscription
(cider-nrepl-send-request
'("op" "cider/tap-subscribe")
(lambda (msg) (cider-tap--handle buffer msg))
connection)))
(pop-to-buffer buffer)))