aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Porter2021-04-10 13:16:13 +0200
committerMichael Albinus2021-04-10 13:16:13 +0200
commitc975258abf346fcc0186892b84ae32ebce8b70d2 (patch)
tree17b3776dc24da2db5d0728f206fcefd496696819
parentc50b5907e0113f7dbb2cc501c54dc365fd01a12b (diff)
downloademacs-c975258abf346fcc0186892b84ae32ebce8b70d2.tar.gz
emacs-c975258abf346fcc0186892b84ae32ebce8b70d2.zip
Further fix of hostname completion on MS Windows
* lisp/net/tramp.el (tramp-completion-file-name-regexp-simplified) (tramp-completion-file-name-regexp-separate): Fix W32 hostname/method completion for simplified and separate syntaxes (same as the previous change to default syntax). Copyright-paperwork-exempt: yes
-rw-r--r--lisp/net/tramp.el17
1 files changed, 15 insertions, 2 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index e61c3b1e44c..578fa148a24 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1103,7 +1103,13 @@ On W32 systems, the volume letter must be ignored.")
1103 1103
1104(defconst tramp-completion-file-name-regexp-simplified 1104(defconst tramp-completion-file-name-regexp-simplified
1105 (concat 1105 (concat
1106 "\\`/\\(" 1106 "\\`"
1107 ;; Allow the volume letter at the beginning of the path. See the
1108 ;; comment in `tramp-completion-file-name-regexp-default' for more
1109 ;; details.
1110 (when (eq system-type 'windows-nt)
1111 "\\(?:[[:alpha:]]:\\)?")
1112 "/\\("
1107 ;; Optional multi hop. 1113 ;; Optional multi hop.
1108 "\\([^/|:]*|\\)*" 1114 "\\([^/|:]*|\\)*"
1109 ;; Last hop. 1115 ;; Last hop.
@@ -1119,7 +1125,14 @@ See `tramp-file-name-structure' for more explanations.
1119On W32 systems, the volume letter must be ignored.") 1125On W32 systems, the volume letter must be ignored.")
1120 1126
1121(defconst tramp-completion-file-name-regexp-separate 1127(defconst tramp-completion-file-name-regexp-separate
1122 "\\`/\\(\\[[^]]*\\)?\\'" 1128 (concat
1129 "\\`"
1130 ;; Allow the volume letter at the beginning of the path. See the
1131 ;; comment in `tramp-completion-file-name-regexp-default' for more
1132 ;; details.
1133 (when (eq system-type 'windows-nt)
1134 "\\(?:[[:alpha:]]:\\)?")
1135 "/\\(\\[[^]]*\\)?\\'")
1123 "Value for `tramp-completion-file-name-regexp' for separate remoting. 1136 "Value for `tramp-completion-file-name-regexp' for separate remoting.
1124See `tramp-file-name-structure' for more explanations.") 1137See `tramp-file-name-structure' for more explanations.")
1125 1138