]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix error in Tramp's encoding check
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 24 Jan 2019 10:06:38 +0000 (11:06 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 24 Jan 2019 10:06:38 +0000 (11:06 +0100)
* lisp/net/tramp-sh.el (tramp-find-inline-encoding):
Use `tramp-get-connection-buffer'.

lisp/net/tramp-sh.el

index d0e7357f8f51adbb2ea1ba0f748ca2f5999e7c86..c578a73f4697cebe84cb915a8e78c70756539760 100644 (file)
@@ -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)))