X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=elpher.git;a=blobdiff_plain;f=elpher.el;h=d8e588c0e8a1a7a5b3c8fc438002702002e86610;hp=3d8e77f680c4e9c875369a232ee6394316d342b8;hb=02fade7fc9a6b642359552694cc7bed95132cf18;hpb=7ac8997eb71a5f5b914bdd4a99317588ba076727 diff --git a/elpher.el b/elpher.el index 3d8e77f..d8e588c 100644 --- a/elpher.el +++ b/elpher.el @@ -2103,7 +2103,8 @@ supports the old protocol elpher, where the link is self-contained." ;; that variable is `browse-url-default-browser' by default, so ;; that's the function that gets advised. If the value is an alist, ;; however, we don't know what to do. Better not interfere? - (when (fboundp browse-url-browser-function) + (when (and (symbolp browse-url-browser-function) + (fboundp browse-url-browser-function)) (advice-add browse-url-browser-function :before-while (lambda (url &rest _args) "Handle gemini, gopher, and finger schemes using Elpher."