]> git.eshelyaron.com Git - emacs.git/commitdiff
Tune `tramp-completion-file-name-regexp-unified'
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 14 Mar 2017 14:10:40 +0000 (15:10 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 14 Mar 2017 14:10:40 +0000 (15:10 +0100)
* lisp/net/tramp.el (tramp-completion-file-name-regexp-unified):
Extend this regexp to match also "/".

lisp/net/tramp.el

index b1f001a95d9369619877232b87116425bd3841cf..aadf09e48fe9a7dd0b69f6acab0508c0ad7d2b1b 100644 (file)
@@ -879,7 +879,7 @@ initial value is overwritten by the car of `tramp-file-name-structure'.")
 ;;;###autoload
 (defconst tramp-completion-file-name-regexp-unified
   (concat
-   "\\`"
+   "\\`/\\("
    ;; Optional multi hop.
    "\\([^/|:]+:[^/|:]*|\\)*"
    ;; Last hop.
@@ -890,7 +890,7 @@ initial value is overwritten by the car of `tramp-file-name-structure'.")
      "[^/|:]+")
    ;; Method separator, user name and host name.
    "\\(:[^/|:]*\\)?"
-   "\\'")
+   "\\)?\\'")
   "Value for `tramp-completion-file-name-regexp' for unified remoting.
 See `tramp-file-name-structure' for more explanations.