Fix browse-url (remove debugging leftover).

* lisp/net/browse-url.el (browse-url): Fix "No suitable browser for
URL" always popping up.
This commit is contained in:
Tassilo Horn 2020-05-07 13:10:44 +02:00
parent de5f59219a
commit 2c905fb8a1

View file

@ -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))))