Skip to content

Commit 8688489

Browse files
committed
[#1854] Use the default jack-in command on remote hosts
I don't know how we can do something like `executable-find` on remote hosts, so we simply assume that the command for a particular project type is available on the remote host.
1 parent de7d734 commit 8688489

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cider.el

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,25 +688,27 @@ choose."
688688
"Find `cider-lein-command' on `exec-path' if possible, or return `nil'.
689689
690690
In case `default-directory' is non-local we assume the command is available."
691-
(when-let ((command (or (file-remote-p default-directory)
691+
(when-let ((command (or (and (file-remote-p default-directory) cider-lein-command)
692692
(executable-find cider-lein-command)
693693
(executable-find (concat cider-lein-command ".bat")))))
694694
(shell-quote-argument command)))
695695

696+
;; TODO: Implement a check for `cider-boot-command' over tramp
696697
(defun cider--boot-resolve-command ()
697698
"Find `cider-boot-command' on `exec-path' if possible, or return `nil'.
698699
699700
In case `default-directory' is non-local we assume the command is available."
700-
(when-let ((command (or (file-remote-p default-directory)
701+
(when-let ((command (or (and (file-remote-p default-directory) cider-boot-command)
701702
(executable-find cider-boot-command)
702703
(executable-find (concat cider-boot-command ".exe")))))
703704
(shell-quote-argument command)))
704705

706+
;; TODO: Implement a check for `cider-gradle-command' over tramp
705707
(defun cider--gradle-resolve-command ()
706708
"Find `cider-gradle-command' on `exec-path' if possible, or return `nil'.
707709
708710
In case `default-directory' is non-local we assume the command is available."
709-
(when-let ((command (or (file-remote-p default-directory)
711+
(when-let ((command (or (and (file-remote-p default-directory) cider-gradle-command)
710712
(executable-find cider-gradle-command)
711713
(executable-find (concat cider-gradle-command ".exe")))))
712714
(shell-quote-argument command)))

0 commit comments

Comments
 (0)