From 74cb6a624877a26b1c3b303c9508ace69877b571 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 10 May 2001 11:54:15 +0000 Subject: [PATCH] (browse-url-filename-alist): Allow UNC file names for MS-Windows and MS-DOS. From Dan Holmsand . --- lisp/net/browse-url.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index 793ced385e3..ee579d859c1 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el @@ -331,7 +331,8 @@ commands reverses the effect of this variable. Requires Netscape version ;; 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 -- 2.39.5