Function: nrepl-notify

nrepl-notify is a byte-compiled function defined in nrepl-client.el.

Signature

(nrepl-notify MSG TYPE)

Documentation

Handle "notification" server request.

MSG is a string to be displayed. TYPE is the type of the message. All notifications are currently displayed with message function and emitted to the REPL.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/nrepl-client.el
(defun nrepl-notify (msg type)
  "Handle \"notification\" server request.
MSG is a string to be displayed.  TYPE is the type of the message.  All
notifications are currently displayed with `message' function and emitted
to the REPL."
  (let* ((face (pcase type
                 ((or "message" `nil) 'font-lock-builtin-face)
                 ("warning" 'warning)
                 ("error"   'error)))
         (msg (if face
                  (propertize msg 'face face)
                (format "%s: %s" (upcase type) msg))))
    (cider-repl--emit-interactive-output msg (or face 'font-lock-builtin-face))
    (message msg)))