]> git.eshelyaron.com Git - emacs.git/commitdiff
Make browse-url-default-browser fall back to EWW
authorStefan Kangas <stefan@marxist.se>
Thu, 7 Jul 2022 11:43:53 +0000 (13:43 +0200)
committerStefan Kangas <stefan@marxist.se>
Sat, 9 Jul 2022 15:27:59 +0000 (17:27 +0200)
* lisp/net/browse-url.el (browse-url-default-browser): Fall back
to EWW.

lisp/net/browse-url.el

index 355f9c12c00617fe399088d71c87ce21605a2722..c5055ac4a52817a261a892f5c874e8f7524f4e71 100644 (file)
@@ -1031,12 +1031,11 @@ instead of `browse-url-new-window-flag'."
     ((executable-find browse-url-chrome-program) 'browse-url-chrome)
     ((executable-find browse-url-webpositive-program) 'browse-url-webpositive)
     ((executable-find browse-url-xterm-program) 'browse-url-text-xterm)
-    (t
-     (lambda (&rest _ignore) (error "No usable browser found"))))
+    (t #'eww-browse-url))
    url args))
 
 (function-put 'browse-url-default-browser 'browse-url-browser-kind
-              ;; Well, most probably external if we ignore w3.
+              ;; Well, most probably external if we ignore EWW.
               'external)
 
 (defun browse-url-can-use-xdg-open ()