]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix browse-url (remove debugging leftover).
authorTassilo Horn <tsdh@gnu.org>
Thu, 7 May 2020 11:10:44 +0000 (13:10 +0200)
committerTassilo Horn <tsdh@gnu.org>
Thu, 7 May 2020 11:12:22 +0000 (13:12 +0200)
* lisp/net/browse-url.el (browse-url): Fix "No suitable browser for
URL" always popping up.

lisp/net/browse-url.el

index b34665358ca507147d5a7ee06662740dbbf44f35..3d55ee554f10936c9c5091be0b8904f2bf2da858 100644 (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))))