summaryrefslogtreecommitdiff
path: root/lisp/net/tramp.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/net/tramp.el')
-rw-r--r--lisp/net/tramp.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index c0f6fdcfadc..2bd75ab83f1 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -2021,6 +2021,10 @@ Falls back to normal file name handler if no Tramp file name handler exists."
(if (and tramp-mode (tramp-tramp-file-p filename))
(save-match-data
(let* ((filename (tramp-replace-environment-variables filename))
+ (non-essential
+ (and non-essential
+ (string-match
+ tramp-completion-file-name-regexp filename)))
(completion (tramp-completion-mode-p))
(foreign
(tramp-find-foreign-file-name-handler