From 96bf08a0ec550ae5f0ef263341520985412997c3 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Thu, 7 Jul 2022 13:43:53 +0200 Subject: [PATCH] Make browse-url-default-browser fall back to EWW * lisp/net/browse-url.el (browse-url-default-browser): Fall back to EWW. --- lisp/net/browse-url.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index 355f9c12c00..c5055ac4a52 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el @@ -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 ()