summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-07-14 19:50:39 +0800
committerPo Lu <luangruo@yahoo.com>2022-07-14 19:51:27 +0800
commit2b869237cc1394a34619a28363050f7ee694a5f0 (patch)
tree26f756293e84298bb77bd20aedd0646f4b986e7c
parent9ea513134b08333a68737be0f1e6bdf89f3bf345 (diff)
downloademacs-2b869237cc1394a34619a28363050f7ee694a5f0.tar.gz
; * lisp/xwidget.el (xwidget-webkit-browse-url): Mark as internal browser.
-rw-r--r--lisp/xwidget.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/xwidget.el b/lisp/xwidget.el
index 88bc8ff6c5e..0821760d995 100644
--- a/lisp/xwidget.el
+++ b/lisp/xwidget.el
@@ -134,6 +134,8 @@ Interactively, URL defaults to the string looking like a url around point."
(xwidget-webkit-new-session url)
(xwidget-webkit-goto-url url))))
+(function-put 'xwidget-webkit-browse-url 'browse-url-browser-kind 'internal)
+
(defun xwidget-webkit-clone-and-split-below ()
"Clone current URL into a new widget place in new window below.
Get the URL of current session, then browse to the URL