]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/tramp.el (tramp-local-host-p): Use `tramp-file-name-host'
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 14 Jan 2008 19:36:07 +0000 (19:36 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 14 Jan 2008 19:36:07 +0000 (19:36 +0000)
instead of `tramp-file-name-real-host'.

lisp/net/tramp.el

index 5a65b95b0f8d2fbea3406890a83cb285d68cef5f..3969f992a8cc15a514e20384ddb098b21f4df150 100644 (file)
@@ -6731,7 +6731,9 @@ necessary only.  This function will be used in file name completion."
 
 (defun tramp-local-host-p (vec)
   "Return t if this points to the local host, nil otherwise."
-  (let ((host (tramp-file-name-real-host vec)))
+  ;; We cannot use `tramp-file-name-real-host'.  A port is an
+  ;; indication for an ssh tunnel or alike.
+  (let ((host (tramp-file-name-host vec)))
     (and
      (stringp host)
      (string-match