summaryrefslogtreecommitdiff
path: root/lisp/net/browse-url.el
diff options
context:
space:
mode:
authorTassilo Horn <tsdh@gnu.org>2020-05-07 13:10:44 +0200
committerTassilo Horn <tsdh@gnu.org>2020-05-07 13:12:22 +0200
commit2c905fb8a1d95a72e4b8a9b138458c86b099ced1 (patch)
treea67272ff395b58e1b8497534b380c3fecbab33ec /lisp/net/browse-url.el
parentde5f59219ac02c6502907f6a24538ddabf487839 (diff)
downloademacs-2c905fb8a1d95a72e4b8a9b138458c86b099ced1.tar.gz
Fix browse-url (remove debugging leftover).
* lisp/net/browse-url.el (browse-url): Fix "No suitable browser for URL" always popping up.
Diffstat (limited to 'lisp/net/browse-url.el')
-rw-r--r--lisp/net/browse-url.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
index b34665358ca..3d55ee554f1 100644
--- a/lisp/net/browse-url.el
+++ b/lisp/net/browse-url.el
@@ -864,7 +864,7 @@ If ARGS are omitted, the default is to pass
;; which may not even exist any more.
(if (stringp (frame-parameter nil 'display))
(setenv "DISPLAY" (frame-parameter nil 'display)))
- (if (functionp nil)
+ (if (functionp function)
(apply function url args)
(error "No suitable browser for URL %s" url))))