From aca4d7cfc40272065de15980698770f939068b67 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 26 Sep 2022 13:20:59 +0200 Subject: [PATCH] Keep point in eww after hitting `g' * lisp/net/eww.el (eww-retrieve): Keep point after hitting `g' (bug#58076). --- lisp/net/eww.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 34e74f8ffaa..af938e3c192 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -415,13 +415,11 @@ For more information, see Info node `(eww) Top'." (defun eww-retrieve (url callback cbargs) (cond ((null eww-retrieve-command) - (url-retrieve url #'eww-render - (list url nil (current-buffer)))) + (url-retrieve url #'eww-render cbargs)) ((eq eww-retrieve-command 'sync) - (let ((orig-buffer (current-buffer)) - (data-buffer (url-retrieve-synchronously url))) + (let ((data-buffer (url-retrieve-synchronously url))) (with-current-buffer data-buffer - (eww-render nil url nil orig-buffer)))) + (apply #'eww-render nil url cbargs)))) (t (let ((buffer (generate-new-buffer " *eww retrieve*")) (error-buffer (generate-new-buffer " *eww error*"))) -- 2.39.2