changeset 37666:16a7e84d5ff3

(browse-url-filename-alist): Allow UNC file names for MS-Windows and MS-DOS. From Dan Holmsand <dan@eyebee.com>.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 10 May 2001 11:54:15 +0000
parents ebd292552bfe
children e8ec6c4a8e8a
files lisp/net/browse-url.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/net/browse-url.el	Thu May 10 03:52:13 2001 +0000
+++ b/lisp/net/browse-url.el	Thu May 10 11:54:15 2001 +0000
@@ -331,7 +331,8 @@
     ;; applies.
     ("^/\\([^:@]+@\\)?\\([^:]+\\):/*" . "ftp://\\1\\2/")
     (,@ (if (memq system-type '(windows-nt ms-dos))
-	    '(("^\\([a-zA-Z]:\\)[\\/]" . "file:\\1/"))))
+	    '(("^\\([a-zA-Z]:\\)[\\/]" . "file:\\1/")
+              ("^[\\/][\\/]+" . "file://"))))
     ("^/+" . "file:/")))
   "An alist of (REGEXP . STRING) pairs used by `browse-url-of-file'.
 Any substring of a filename matching one of the REGEXPs is replaced by