Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9fbe1327
Commit
9fbe1327
authored
Jan 02, 2001
by
Dave Love
Browse files
(browse-url-filename-alist): Avoid backquote
read syntax.
parent
13d6a61c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
lisp/net/browse-url.el
lisp/net/browse-url.el
+5
-4
No files found.
lisp/net/browse-url.el
View file @
9fbe1327
...
...
@@ -323,14 +323,15 @@ commands reverses the effect of this variable. Requires Netscape version
: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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment