1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-14 09:39:42 +00:00

Make browse-url-default-browser fall back to EWW

* lisp/net/browse-url.el (browse-url-default-browser): Fall back
to EWW.
This commit is contained in:
Stefan Kangas 2022-07-07 13:43:53 +02:00
parent 2a8d083607
commit 96bf08a0ec

View 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 ()