Function: nrepl--ssh-file-name-matches-host-p

nrepl--ssh-file-name-matches-host-p is a byte-compiled function defined in nrepl-client.el.

Signature

(nrepl--ssh-file-name-matches-host-p FILE-NAME HOST)

Documentation

Return t, if FILE-NAME is a tramp-file-name on HOST via ssh.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/nrepl-client.el
(defun nrepl--ssh-file-name-matches-host-p (file-name host)
  "Return t, if FILE-NAME is a tramp-file-name on HOST via ssh."
  (when (tramp-tramp-file-p file-name)
    (with-parsed-tramp-file-name file-name v
      (and (member v-method '("ssh" "sshx"))
           (member host (list v-host (concat v-host "#" v-port)))))))