Function: nrepl--unix-connect
nrepl--unix-connect is a byte-compiled function defined in
nrepl-client.el.
Signature
(nrepl--unix-connect SOCKET-FILE &optional NO-ERROR)
Documentation
If SOCKET-FILE is given, try to make-network-process.
If NO-ERROR is non-nil, show messages instead of throwing an error.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/nrepl-client.el
;;; Network
(defun nrepl--unix-connect (socket-file &optional no-error)
"If SOCKET-FILE is given, try to `make-network-process'.
If NO-ERROR is non-nil, show messages instead of throwing an error."
(if (not socket-file)
(unless no-error
(error "[nREPL] Socket file not provided"))
(message "[nREPL] Establishing unix socket connection to %s ..." socket-file)
(condition-case nil
(prog1 (list :proc (make-network-process :name "nrepl-connection" :buffer nil
:family 'local :service socket-file)
:host "local-unix-domain-socket"
:port socket-file
:socket-file socket-file)
(message "[nREPL] Unix socket connection to %s established" socket-file))
(error (let ((msg (format "[nREPL] Unix socket connection to %s failed" socket-file)))
(if no-error
(message msg)
(error msg))
nil)))))