Function: cider--update-host-port
cider--update-host-port is a byte-compiled function defined in
cider.el.
Signature
(cider--update-host-port PARAMS)
Documentation
Update :host and :port; or :socket-file in PARAMS.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider.el
(defun cider--update-host-port (params)
"Update :host and :port; or :socket-file in PARAMS."
(with-current-buffer (or (plist-get params :--context-buffer)
(current-buffer))
(let* ((params (cider--update-do-prompt params))
(host (plist-get params :host))
(port (plist-get params :port))
(endpoint (if (plist-get params :do-prompt)
(cider-select-endpoint)
(if (and host port)
(cons host port)
(cider-select-endpoint)))))
(if (equal "local-unix-domain-socket" (car endpoint))
(plist-put params :socket-file (cdr endpoint))
(thread-first params
(plist-put :host (car endpoint))
(plist-put :port (cdr endpoint)))))))