diff options
author | Gerd Moellmann <gerd@gnu.org> | 2001-05-10 11:54:15 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2001-05-10 11:54:15 +0000 |
commit | 74cb6a624877a26b1c3b303c9508ace69877b571 (patch) | |
tree | 336471c0ce286abf1bcd8d38fd3a6d5a15944129 /lisp/net | |
parent | ea7974a656b210a7befdad10ad7f9fa3a00b0120 (diff) | |
download | emacs-74cb6a624877a26b1c3b303c9508ace69877b571.tar.gz |
(browse-url-filename-alist): Allow UNC file
names for MS-Windows and MS-DOS. From Dan Holmsand
<dan@eyebee.com>.
Diffstat (limited to 'lisp/net')
-rw-r--r-- | lisp/net/browse-url.el | 3 |
1 files changed, 2 insertions, 1 deletions
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 |