summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Hoetzel <juergen@archlinux.org>2018-05-26 18:31:00 +0200
committerBozhidar Batsov <bozhidar.batsov@gmail.com>2018-05-27 16:45:35 +0300
commitc40a020e8a59821f6fcae7557a340b272f5babee (patch)
tree22754a87e938ce7b277062141d23c5c2e03e0a4e
parent209fb0a9cc994d861ee632516b9fb20bbcfd1833 (diff)
Don't use (deprecated) internal tramp var
Fixes #2216.
-rw-r--r--cider.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/cider.el b/cider.el
index bc5305c9..0a3d4672 100644
--- a/cider.el
+++ b/cider.el
@@ -1006,10 +1006,8 @@ the appropriate REPL type in the end."
(defun cider-current-host ()
"Retrieve the current host."
- (if (and (stringp buffer-file-name)
- (file-remote-p buffer-file-name)
- (boundp 'tramp-current-host))
- tramp-current-host
+ (if (stringp buffer-file-name)
+ (file-remote-p buffer-file-name 'host)
"localhost"))
(defun cider-select-endpoint ()