[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 2c905fb: Fix browse-url (remove debugging leftover).

From: Tassilo Horn
Subject: master 2c905fb: Fix browse-url (remove debugging leftover).
Date: Thu, 7 May 2020 07:12:26 -0400 (EDT)

branch: master
commit 2c905fb8a1d95a72e4b8a9b138458c86b099ced1
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>

    Fix browse-url (remove debugging leftover).
    * lisp/net/browse-url.el (browse-url): Fix "No suitable browser for
    URL" always popping up.
 lisp/net/browse-url.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
index b346653..3d55ee5 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))))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]