From: Po Lu Date: Thu, 11 Nov 2021 02:13:42 +0000 (+0800) Subject: Switch to xwidget webkit buffer even if a session already exists X-Git-Tag: emacs-29.0.90~3668^2~56 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=195f5a0dfa8152771a47c899fab5ba2fe2ed00fb;p=emacs.git Switch to xwidget webkit buffer even if a session already exists * lisp/xwidget.el (xwidget-webkit-goto-url): Make behavior when there is an existing session consistent. --- diff --git a/lisp/xwidget.el b/lisp/xwidget.el index cc149cf1978..19b95066b0f 100644 --- a/lisp/xwidget.el +++ b/lisp/xwidget.el @@ -762,7 +762,8 @@ Return the buffer." "Goto URL with xwidget webkit." (if (xwidget-webkit-current-session) (progn - (xwidget-webkit-goto-uri (xwidget-webkit-current-session) url)) + (xwidget-webkit-goto-uri (xwidget-webkit-current-session) url) + (switch-to-buffer (xwidget-buffer (xwidget-webkit-current-session)))) (xwidget-webkit-new-session url))) (defun xwidget-webkit-back ()