summaryrefslogtreecommitdiff
path: root/lisp/browse-url.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/browse-url.el')
-rw-r--r--lisp/browse-url.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/browse-url.el b/lisp/browse-url.el
index 1af08b0606b..d4e6988a387 100644
--- a/lisp/browse-url.el
+++ b/lisp/browse-url.el
@@ -371,7 +371,7 @@ Search backwards for the start of a URL ending at or after
point. If no URL found, return the empty string.
A file name is also acceptable, and `http://' will be prepended to it."
(or (thing-at-point 'url)
- (let ((file (thing-at-point 'file)))
+ (let ((file (thing-at-point 'filename)))
(if file (concat "http://" file)))
""))