emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 19a04b4: Tune `tramp-completion-file-name-regexp-un


From: Michael Albinus
Subject: [Emacs-diffs] master 19a04b4: Tune `tramp-completion-file-name-regexp-unified'
Date: Tue, 14 Mar 2017 10:10:47 -0400 (EDT)

branch: master
commit 19a04b4c327aab2ac7c3089adf891aa8078ef19c
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>

    Tune `tramp-completion-file-name-regexp-unified'
    
    * lisp/net/tramp.el (tramp-completion-file-name-regexp-unified):
    Extend this regexp to match also "/".
---
 lisp/net/tramp.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index b1f001a..aadf09e 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -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.
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]