Skip to content

Commit 35e6d96

Browse files
xiongtxbbatsov
authored andcommitted
Use non-essential instead of tramp-completion-mode for Emacs 26
`tramp-completion-mode` is deprecated in Emacs 26. See: https://travis-ci.org/clojure-emacs/cider/jobs/317868996#L820
1 parent b7c93fe commit 35e6d96

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cider.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,10 @@ gets associated with it."
706706
(defun cider--ssh-hosts ()
707707
"Retrieve all ssh host from local configuration files."
708708
(seq-map (lambda (s) (list (replace-regexp-in-string ":$" "" s)))
709-
(let ((tramp-completion-mode t))
709+
;; `tramp-completion-mode' is obsoleted in 26
710+
(cl-progv (if (version< emacs-version "26")
711+
'(tramp-completion-mode)
712+
'(non-essential)) '(t)
710713
(tramp-completion-handle-file-name-all-completions "" "/ssh:"))))
711714

712715
(defun cider--completing-read-host (hosts)

0 commit comments

Comments
 (0)