# HG changeset patch # User Dave Love # Date 978477444 0 # Node ID 392d90bba860803031035e56ce5914807f66a95b # Parent 0d249b1dfcc7982fb46c8329900daf9e58b078e5 (browse-url-filename-alist): Avoid backquote read syntax. diff -r 0d249b1dfcc7 -r 392d90bba860 lisp/net/browse-url.el --- a/lisp/net/browse-url.el Tue Jan 02 22:57:41 2001 +0000 +++ b/lisp/net/browse-url.el Tue Jan 02 23:17:24 2001 +0000 @@ -323,14 +323,15 @@ :group 'browse-url) (defcustom browse-url-filename-alist - `(("^/\\(ftp@\\|anonymous@\\)?\\([^:]+\\):/*" . "ftp://\\2/") + (\` ; Backquote syntax won't work. + (("^/\\(ftp@\\|anonymous@\\)?\\([^:]+\\):/*" . "ftp://\\2/") ;; The above loses the username to avoid the browser prompting for ;; it in anonymous cases. If it's not anonymous the next regexp ;; applies. ("^/\\([^:@]+@\\)?\\([^:]+\\):/*" . "ftp://\\1\\2/") - ,(if (memq system-type '(windows-nt ms-dos)) - '("^\\([a-zA-Z]:\\)[\\/]" . "file:\\1/")) - ("^/+" . "file:/")) + (,@ (if (memq system-type '(windows-nt ms-dos)) + '(("^\\([a-zA-Z]:\\)[\\/]" . "file:\\1/")))) + ("^/+" . "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 the corresponding STRING using `replace-match', not treating STRING