Function: nrepl-show-messages

nrepl-show-messages is an interactive and byte-compiled function defined in nrepl-client.el.

Signature

(nrepl-show-messages)

Documentation

Pop up an nREPL messages buffer.

With more than one active connection, prompt for which one to show. When message logging is disabled (nrepl-log-messages), offer to enable it; the log then fills as nREPL traffic flows.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/nrepl-client.el
(defun nrepl-show-messages ()
  "Pop up an nREPL messages buffer.
With more than one active connection, prompt for which one to show.
When message logging is disabled (`nrepl-log-messages'), offer to enable
it; the log then fills as nREPL traffic flows."
  (interactive)
  (let ((buffers (seq-filter (lambda (b)
                               (with-current-buffer b
                                 (derived-mode-p 'nrepl-messages-mode)))
                             (buffer-list))))
    (pcase (length buffers)
      (1 (pop-to-buffer (car buffers)))
      (0 (cond
          (nrepl-log-messages
           (user-error "No nREPL messages have been logged yet (logging is on)"))
          ((y-or-n-p "Message logging is disabled; enable it? ")
           (setq nrepl-log-messages t)
           (message "Enabled nREPL message logging; the log will fill as traffic flows"))))
      (_ (pop-to-buffer
          (get-buffer
           (completing-read "nREPL messages buffer: "
                            (mapcar #'buffer-name buffers)
                            nil t)))))))