From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Add command to browse xwidget history Date: Mon, 15 Nov 2021 10:40:11 +0100 Message-ID: <87zgq5bvus.fsf@gmail.com> References: <87a6i62e45.fsf.ref@yahoo.com> <87a6i62e45.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4632"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 15 10:41:16 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mmYUG-00012U-1T for ged-emacs-devel@m.gmane-mx.org; Mon, 15 Nov 2021 10:41:16 +0100 Original-Received: from localhost ([::1]:41442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmYUC-0007tD-Uf for ged-emacs-devel@m.gmane-mx.org; Mon, 15 Nov 2021 04:41:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmYTI-0007C3-Ps for emacs-devel@gnu.org; Mon, 15 Nov 2021 04:40:16 -0500 Original-Received: from [2a00:1450:4864:20::432] (port=41692 helo=mail-wr1-x432.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmYTG-000366-S8 for emacs-devel@gnu.org; Mon, 15 Nov 2021 04:40:16 -0500 Original-Received: by mail-wr1-x432.google.com with SMTP id a9so3160327wrr.8 for ; Mon, 15 Nov 2021 01:40:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=B0akp46ifMBclTlaiTvtkmSClsrGklNBIMxGg47Prxc=; b=PZ/qYFaatQHYRxctC77WehNENmE9cYGUjCLuu1AP1/vZ5ZdngNGw1MwlsLjExNfZOY 19o/v4Ea4XS5XZZClGk/ZXqnJoBGSRcTMWqzHIgGRTaRmxcU2kJR2vd12jHXcDRt3s+c 9E7K5YhLh1C2hAyJKecZKfTO3GSSSn/10pEJvLo3+9DhuSd8gJH1mSiKkkcUZG2SpRuO uLM93FkbD8axhOVZ647gDz3GbeYc8HCCXRKJ1o151c13umL0pfl+hlvjBTEhth1mckJC jx2j+YoU0uxePOKJxgfM5M9bj74z53IqNR9cseSgnsYakXe6/jT27d/c/Tkm/EtGoDFq 8JZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=B0akp46ifMBclTlaiTvtkmSClsrGklNBIMxGg47Prxc=; b=3kMkF6kOC/IGd8/2pz4REmTqoSne+G9owaKJ4XnUazTkKo1HbtzKX5qTKSBVR56Uaz b73N1T0mYKzrpKDSNs0DNkO5OVDr7jn3oUQoVz0sHtSOcDzplCS8cdqA54eXX7v7gBQM 3bems0bd7oeHjpLslWvHuYQr+pKFUMO69JH5FNK2GTtfBIWYb0W5lqA2j7Urv3prExgK jZOU9Tr1EDnAImC16gRR+kqNj+atmEN0NdT5kQALgWvLbVCwFI85s5WOPDRnOOyGup/e EBVolBO0K7MNy40mZb8AXZdfaRBW2Uh+wW8Tw+rkEMuojwwmprZlNxsZcEzUluJFgJQj nCrg== X-Gm-Message-State: AOAM530zl5dVS6HaVoMrSmeK7aubIVMCjh8FrPdD4lPJ41IZBXilMkTl Bs+4Ig2QhLzdIki8VJpn6QJ3nf2JtFM= X-Google-Smtp-Source: ABdhPJwj+ysJRokIFOstVypVM5KZQeY+gs12X6KhL1rUmeNrQtEP1ZgVd23l2NYabM0EJYgLcyO3BA== X-Received: by 2002:a5d:6707:: with SMTP id o7mr44466310wru.172.1636969212784; Mon, 15 Nov 2021 01:40:12 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb50:8b37:e873:7677:d1de]) by smtp.gmail.com with ESMTPSA id l11sm13593942wrp.61.2021.11.15.01.40.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 01:40:12 -0800 (PST) Gmane-Reply-To-List: yes In-Reply-To: <87a6i62e45.fsf@yahoo.com> (Po Lu's message of "Mon, 15 Nov 2021 13:15:54 +0800") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::432 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=rpluim@gmail.com; helo=mail-wr1-x432.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:279486 Archived-At: >>>>> On Mon, 15 Nov 2021 13:15:54 +0800, Po Lu said: Po> +@findex xwidget-webkit-browse-history Po> +@cindex history of webkit buffers Po> + The command @code{xwidget-webkit-browse-history} displays a buff= er Po> +containing a list of pages once loaded by the current WebKit buffe= r, 'previously loaded' Po> +and lets you navigate to those pages by hitting @kbd{RET}. Po> + Po> +It is bound to @kbd{H}. Po> + Po> @node Browse-URL Po> @subsection Following URLs Po> @cindex World Wide Web Po> diff --git a/etc/NEWS b/etc/NEWS Po> index 312fc18f4f..cda29650c0 100644 Po> --- a/etc/NEWS Po> +++ b/etc/NEWS Po> @@ -486,6 +486,12 @@ This mode acts similarly to incremental search= , and allows to search Po> the contents of a WebKit widget. In xwidget-webkit mode, it is bo= und Po> to 'C-s' and 'C-r'. =20 Po> ++++ Po> +*** New command 'xwidget-webkit-browse-history'. Po> +This command displays a buffer containing the page load history of Po> +the current WebKit widget, and allows you to navigate to various Po> +points in history. Po> + Short phrases are better: 'allows you to navigate it' Po> + (when (get-buffer "*Xwidget WebKit History*") Po> + (with-current-buffer "*Xwidget WebKit History*" Po> + (revert-buffer))) Minor optimisation: use `when-let'. Avoid repetition. DRY =F0=9F=98=84 Robert --=20