mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-05 23:21:22 -08:00
* net/tramp.el (tramp-local-host-p): Use `tramp-file-name-host'
instead of `tramp-file-name-real-host'.
This commit is contained in:
parent
b58c3770c7
commit
c992abdbc6
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue