From: Michael Albinus Date: Sat, 14 Dec 2019 13:20:00 +0000 (+0100) Subject: * lisp/net/tramp.el (tramp-initial-file-name-regexp): Make it more precise. X-Git-Tag: emacs-27.0.90~353 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3f36cab333a01bec3850d27ac0b2383570edb14e;p=emacs.git * lisp/net/tramp.el (tramp-initial-file-name-regexp): Make it more precise. --- diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 8f5eb5096a2..8988e57b8df 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -1019,7 +1019,7 @@ See also `tramp-file-name-regexp'.") (car tramp-file-name-structure)) ;;;###autoload -(defconst tramp-initial-file-name-regexp "\\`/.+:.*:" +(defconst tramp-initial-file-name-regexp "\\`/[^/:]+:[^/:]*:" "Value for `tramp-file-name-regexp' for autoload. It must match the initial `tramp-syntax' settings.")