From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?iso-8859-1?Q?Sebasti=E1n_Mon=EDa?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] EWW - use revert--buffer-function to reload, and allow reload in eww-list-buffer Date: Sat, 17 Aug 2024 08:35:36 -0400 Message-ID: References: <86jzgg5pgv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31049"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 17 14:36:29 2024 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 1sfIfV-0007uj-4e for ged-emacs-devel@m.gmane-mx.org; Sat, 17 Aug 2024 14:36:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfIel-0001so-Tr; Sat, 17 Aug 2024 08:35:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sfIek-0001sU-0X for emacs-devel@gnu.org; Sat, 17 Aug 2024 08:35:42 -0400 Original-Received: from fout8-smtp.messagingengine.com ([103.168.172.151]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sfIeg-0005D2-HW; Sat, 17 Aug 2024 08:35:41 -0400 Original-Received: from phl-compute-03.internal (phl-compute-03.nyi.internal [10.202.2.43]) by mailfout.nyi.internal (Postfix) with ESMTP id 47EAF138FCBE; Sat, 17 Aug 2024 08:35:37 -0400 (EDT) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Sat, 17 Aug 2024 08:35:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sebasmonia.com; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm3; t=1723898137; x=1723984537; bh=EI7gledGKd7/XMFAiT0X49ovJvTUG+39 k2dPsGrA8I8=; b=fVwDIexzIwD7axZAVsWwSQ6tkksZ+A+IaYWxJP9E8sIjibAn bgNiVJYS61DHurkp39y63xvbI4EOhZgodMTDiEyx93OKjIiNLHdfqf1uNzxsKrHN PGGZ80xeTZQt1BGo+M8vPA5sDpsobFurPnt8U4GiJ34nP3e4Rl/76dba4BnSy6RH J+zKtA4CvWjlTaz2olRfE34LQK6LiJEQlMAEH7qVdQS1xsFrw3gaA/rq42QbhbBx 3DiW/O9NFfgorhczpvRpR/c9fFsAI+CceFRFRYoz7deSQQE+VMhR6Oha2JPkx3hu KDgIB0blEhPm0yfvG96P3sJuMYTS45DahfhnUQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1723898137; x= 1723984537; bh=EI7gledGKd7/XMFAiT0X49ovJvTUG+39k2dPsGrA8I8=; b=E v758DGu98L1pBbIB+Qv0bfubulyHLSYJ9GR1kBdjB2TDupAliVUC6Aulv801Sw3I bK8h69h1auuIUtFzfP1uFTZTSBW+wPwJV9xcsqWywkpB+BP/FlWnjGd2nS0WrA+4 BTw4rrlQMew6q21/oFGCNRVyx/zEjsPMQgRIYqjfJO5NjC+kTKynefg/8R+YQ8aM jaC22bWmiZrBDN3whheLKAzXoaQhKl2Wqzw1SmZ93ao+IzfrHkosxjQotRI7WEi3 eW10bSb9CBI1d8BmhrtGq/QjsM2b/W79I47LIWGS7dK8QNXwBFIERw/F5K78JI8T MYqPoUMfLSSiRMaPQZiPw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddutddgheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffffkfgggtgfgsehtqhertddtredu necuhfhrohhmpefuvggsrghsthhijohnucfoohhnvogruceoshgvsggrshhtihgrnhessh gvsggrshhmohhnihgrrdgtohhmqeenucggtffrrghtthgvrhhnpeejfeekteevuedvffeh tdegueektdevkeevtefhvdfgffeiieeiteeugfdvieevkeenucffohhmrghinhepshgvsg grshhmohhnihgrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepshgvsggrshhtihgrnhesshgvsggrshhmohhnihgrrdgtohhmpdhnsg gprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvmhgrtghs qdguvghvvghlsehgnhhurdhorhhgpdhrtghpthhtohepvghlihiisehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: iab2c46da:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 17 Aug 2024 08:35:36 -0400 (EDT) In-Reply-To: (=?iso-8859-1?Q?=22Sebasti?= =?iso-8859-1?Q?=E1n_Mon=EDa=22's?= message of "Fri, 16 Aug 2024 14:55:48 -0400") Received-SPF: pass client-ip=103.168.172.151; envelope-from=sebastian@sebasmonia.com; helo=fout8-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322841 Archived-At: Sebasti=E1n Mon=EDa writes: --- This smaller patch does only the eww buffer list portion, and we leave EWW buffer reloads as they are now. lisp/net/eww.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/net/eww.el b/lisp/net/eww.el index b2e1c5a72e5..660731faa30 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -2601,8 +2601,10 @@ see)." =20 ;;; eww buffers list =20 -(defun eww-list-buffers () - "Enlist eww buffers." +(defun eww-list-buffers (&optional _ignore-auto _noconfirm) + "Pop a buffer with a list of eww buffers. +Optional arguments make this function compatible with the +`revert-buffer-function' interface." (interactive) (let (buffers-info (current (current-buffer))) @@ -2719,6 +2721,7 @@ see)." \\{eww-buffers-mode-map}" :interactive nil (buffer-disable-undo) + (setq-local revert-buffer-function #'eww-list-buffers) (setq truncate-lines t)) =20 ;;; Desktop support --=20 2.45.2.windows.1 --=20 Sebasti=E1n Mon=EDa https://site.sebasmonia.com/