summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2019-01-24 11:06:38 +0100
committerMichael Albinus <michael.albinus@gmx.de>2019-01-24 11:06:38 +0100
commit0744c35307d544d960c9d7628ea91ad722ff6217 (patch)
treeaf28d32e5f7d5105f1146991a7597a8015ee79bc
parentd52bc534d799c255f24ff2a56e8bed830d8f68ca (diff)
downloademacs-0744c35307d544d960c9d7628ea91ad722ff6217.tar.gz
Fix error in Tramp's encoding check
* lisp/net/tramp-sh.el (tramp-find-inline-encoding): Use `tramp-get-connection-buffer'.
-rw-r--r--lisp/net/tramp-sh.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index d0e7357f8f5..c578a73f469 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -4499,7 +4499,7 @@ Goes through the list `tramp-local-coding-commands' and
t)
(throw 'wont-work-remote nil))
- (with-current-buffer (tramp-get-buffer vec)
+ (with-current-buffer (tramp-get-connection-buffer vec)
(goto-char (point-min))
(unless (looking-at-p (regexp-quote magic))
(throw 'wont-work-remote nil)))