From unknown Sun Aug 17 10:17:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62574: [PATCH] Preserve peer information for web page in eww-readable Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 Mar 2023 18:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62574 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 62574@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168028892019128 (code B ref -1); Fri, 31 Mar 2023 18:56:02 +0000 Received: (at submit) by debbugs.gnu.org; 31 Mar 2023 18:55:20 +0000 Received: from localhost ([127.0.0.1]:34515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piJuC-0004yQ-00 for submit@debbugs.gnu.org; Fri, 31 Mar 2023 14:55:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:60818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piJu9-0004y4-A3 for submit@debbugs.gnu.org; Fri, 31 Mar 2023 14:55:18 -0400 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 1piJu7-0005Su-Vm for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2023 14:55:16 -0400 Received: from mail.eshelyaron.com ([107.175.124.16] helo=eshelyaron.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piJu6-0003oG-Bg for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2023 14:55:15 -0400 From: Eshel Yaron DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1680288913; bh=oSmT2iZ5XdDyMWsCTgi1JT5DzJI6+zQ2bmb3LLndlFM=; h=From:To:Subject:Date:From; b=sgVekoOlkJ/8fj8bdak4XrM5sS8ivfcrz2smF4CNSkLOBaMwpLAunt0KHcxRqrSmw ph4LpV7w1vL+sFAzhsc+KPaZjSrnO6g78aprLAbyFWpq2+VMiub/O9JjOpcB1n/xw9 m8GWKxpe3fG0JsRbQRkaab+Mo5HQsBvmktoEP1ag40WVOOEJ7Ki7GGYsEPZLrGdbEz iE5/aG9kW0kyLQbeXeUIfTh2Fhn5aVwNWbOdsJOkGw4vi9H8Zb8uqEEJCPAikYL0m7 8HQPTUt9DUHxVNC4PZsE+Xt9V0P60GOkNOxrymTaCAuQywDDHP6mG1xxfVEugVfFu+ K9fLkupvHaGRQ== Date: Fri, 31 Mar 2023 21:55:09 +0300 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=107.175.124.16; envelope-from=me@eshelyaron.com; helo=eshelyaron.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain Tags: patch Hello, Here's a small patch that addresses a slight annoyance in EWW. Cheers, Eshel In GNU Emacs 30.0.50 (build 2, x86_64-apple-darwin22.4.0, NS appkit-2299.50 Version 13.3 (Build 22E252)) of 2023-03-31 built on esmac.lan Repository revision: 73a320801e9af61a48fd0e803afcd02b059b2338 Repository branch: master Windowing system distributor 'Apple', version 10.3.2299 System Description: macOS 13.3 Configured using: 'configure CFLAGS=-O3 --with-native-compilation --with-json --with-tree-sitter' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Preserve-peer-information-for-web-page-in-eww-readab.patch >From ce54c22d01f9b84b4632adb7e294d7e883f33b81 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Fri, 31 Mar 2023 17:54:12 +0300 Subject: [PATCH] Preserve peer information for web page in eww-readable The :peer property in eww-data affects the face of the page title in header-line-format as set by eww-update-header-line-format. Preserving this property in eww-readable avoids having the header line's appearance change when this command is called. * lisp/net/eww.el (eww-readable): Preserve eww-data's :peer property. --- lisp/net/eww.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 1b42ef4e919..a1dd186915e 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -1014,7 +1014,7 @@ eww-readable (list 'base (list (cons 'href base)) (eww-highest-readability dom)) nil (current-buffer)) - (dolist (elem '(:source :url :title :next :previous :up)) + (dolist (elem '(:source :url :title :next :previous :up :peer)) (plist-put eww-data elem (plist-get old-data elem))) (eww--after-page-change))) -- 2.40.0 --=-=-=-- From unknown Sun Aug 17 10:17:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62574: [PATCH] Preserve peer information for web page in eww-readable Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Apr 2023 08:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62574 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eshel Yaron Cc: 62574@debbugs.gnu.org Received: via spool by 62574-submit@debbugs.gnu.org id=B62574.168033824726276 (code B ref 62574); Sat, 01 Apr 2023 08:38:01 +0000 Received: (at 62574) by debbugs.gnu.org; 1 Apr 2023 08:37:27 +0000 Received: from localhost ([127.0.0.1]:35498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piWjn-0006pj-FA for submit@debbugs.gnu.org; Sat, 01 Apr 2023 04:37:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piWjl-0006pW-R0 for 62574@debbugs.gnu.org; Sat, 01 Apr 2023 04:37:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piWjf-00080R-BQ; Sat, 01 Apr 2023 04:37:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=3m0uaNfLfhKbabCYNk4uUS0YJQLspt4FjCKRPzpAgTA=; b=ZDGZjAFpbNDt p5R+cAXPGuV9Lm5ne1osRSVF83cY0AFR6QIAB4/2pvyPRwHAY7vZDaAd/qXmYiADHGuBMSC6ShA2q zIbiP+XDHwgUAbqqMd/YYHg4qedZExC4Otf7o8L2KUpfQcCvb10lvHom0N7bfOm9I99zTAwW1+qX0 hYWpzmBC7bCsgOiUItij7gudkoR++g4ARuYaoV2dOht+7w6X2cCBvIGsqNAFG7JwlqXUojpJEuQuk OtwNjxfD+DkS+XHFjaoC4kMIIqV7wOjfF08F51To3J1dZauuGwpJAhnOLoPEJGlhrd3zYIiLqA1Ks QrnazTS6UU4ZJlu+KLji5Q==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piWje-0007Td-Mv; Sat, 01 Apr 2023 04:37:19 -0400 Date: Sat, 01 Apr 2023 11:37:33 +0300 Message-Id: <83jzywyp4i.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (bug-gnu-emacs@gnu.org) References: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 31 Mar 2023 21:55:09 +0300 > From: Eshel Yaron via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Here's a small patch that addresses a slight annoyance in EWW. Thanks, but can you please post a recipe for showing the effect of this change? From unknown Sun Aug 17 10:17:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62574: [PATCH] Preserve peer information for web page in eww-readable Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Apr 2023 08:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62574 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: 62574@debbugs.gnu.org Received: via spool by 62574-submit@debbugs.gnu.org id=B62574.168033953929085 (code B ref 62574); Sat, 01 Apr 2023 08:59:01 +0000 Received: (at 62574) by debbugs.gnu.org; 1 Apr 2023 08:58:59 +0000 Received: from localhost ([127.0.0.1]:35507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piX4c-0007Z3-NB for submit@debbugs.gnu.org; Sat, 01 Apr 2023 04:58:58 -0400 Received: from mail.eshelyaron.com ([107.175.124.16]:42916 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piX4a-0007Ys-T4 for 62574@debbugs.gnu.org; Sat, 01 Apr 2023 04:58:57 -0400 From: Eshel Yaron DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1680339536; bh=UEG7zX2x36Py2EH/p4wffqBEldsR1yQDb84fwWtWl+M=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=EHu8j78nHhcakxfERF6QHo/r1wApsY6lz4IfXm6A3PkRO2181+aPCH4mPZJbTXgij Um4R7j0IpPRSGXtsQ91LcKyBOWnm9QrKS7F57KI9scT/NVpkaDmJfLhwxR8tYlyySb qj0VkbFE6rn3uFXzfylZIxkxWKKRkuMHi6Q3+gDsMBcQugM9VNJbVUhNPbdlgajpDY Yc0CsEOIrM0lEy++NPNqcIK4+bPv/YqQWvqIPpX5oiG+Zioi0Tcr4q8JLDug+LV+cU Gjv4ByWoLokn/nQveilqTs04uv4s3Nex6htE3fAV71Q2RvFsk9/y93NQPFLNUvgkt9 izOXLyJMh3SuQ== In-Reply-To: <83jzywyp4i.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 01 Apr 2023 11:37:33 +0300") References: <83jzywyp4i.fsf@gnu.org> Date: Sat, 01 Apr 2023 11:58:52 +0300 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> Date: Fri, 31 Mar 2023 21:55:09 +0300 >> From: Eshel Yaron via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> Here's a small patch that addresses a slight annoyance in EWW. > > Thanks, but can you please post a recipe for showing the effect of > this change? Sure: 1. Start emacs -Q 2. Type M-x eww RET https://gnu.org RET (any HTTPS site with a valid certificate will do) 3. Notice the green color of the page's title in the header line that indicates that the peer's certificate is valid (You can also check C-h v header-line-format RET to validate that the eww-valid-certificate face is applied to the title portion of the header line) 4. Now type R to execute eww-readable 5. Note that the color of page's title in the header line changed (it is no longer green) From unknown Sun Aug 17 10:17:37 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Eshel Yaron Subject: bug#62574: closed (Re: bug#62574: [PATCH] Preserve peer information for web page in eww-readable) Message-ID: References: <83v8iewx3r.fsf@gnu.org> X-Gnu-PR-Message: they-closed 62574 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 62574@debbugs.gnu.org Date: Sun, 02 Apr 2023 07:41:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1680421262-18525-1" This is a multi-part message in MIME format... ------------=_1680421262-18525-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #62574: [PATCH] Preserve peer information for web page in eww-readable which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 62574@debbugs.gnu.org. --=20 62574: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D62574 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1680421262-18525-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 62574-done) by debbugs.gnu.org; 2 Apr 2023 07:40:42 +0000 Received: from localhost ([127.0.0.1]:39183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pisKP-0004o9-Sr for submit@debbugs.gnu.org; Sun, 02 Apr 2023 03:40:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pisKN-0004nw-RO for 62574-done@debbugs.gnu.org; Sun, 02 Apr 2023 03:40:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pisKI-0007eV-4F; Sun, 02 Apr 2023 03:40:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=CwEd25jFIaM253jXuDMbr/eYxC11TzdYKbAVXNNUCwY=; b=VjwNGeKLHtB7 o+IqjzalXYC9iE78QvOoUlSLwxINl8Ot2Y1mkW0BVADI1ViSAr2gNfiMDAg2WMJ46YTOBbs2Dc9RI vfA3XBDvwkLEW2sV8aAjLiCmv69sR8BxBfViHLZkQ5bGn+hE02QgYv4zvs7hyLt4+EjLBeTWI0LNx XdMbyS3QpC/yvA1x6AmKjX4FpX+vcZ8CAaquDTAx2vM+iTE+CGACoHjhU7+Ot5AxxwGIXWfDsJN+3 YrsjVEjodG8ddGuoH7ChGv4FMK+SVIn7arguiftkeCBKMQ8mBd+B0DRhPePS5SHOD6ZWfOsFFgBww Z8xGQfYVrfg1uUKxd3ZELg==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pisJq-0002Mu-0Q; Sun, 02 Apr 2023 03:40:33 -0400 Date: Sun, 02 Apr 2023 10:40:24 +0300 Message-Id: <83v8iewx3r.fsf@gnu.org> From: Eli Zaretskii To: Eshel Yaron In-Reply-To: (message from Eshel Yaron on Sat, 01 Apr 2023 11:58:52 +0300) Subject: Re: bug#62574: [PATCH] Preserve peer information for web page in eww-readable References: <83jzywyp4i.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62574-done Cc: 62574-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Eshel Yaron > Cc: 62574@debbugs.gnu.org > Date: Sat, 01 Apr 2023 11:58:52 +0300 > > Eli Zaretskii writes: > > >> Date: Fri, 31 Mar 2023 21:55:09 +0300 > >> From: Eshel Yaron via "Bug reports for GNU Emacs, > >> the Swiss army knife of text editors" > >> > >> Here's a small patch that addresses a slight annoyance in EWW. > > > > Thanks, but can you please post a recipe for showing the effect of > > this change? > > Sure: > > 1. Start emacs -Q > 2. Type M-x eww RET https://gnu.org RET > (any HTTPS site with a valid certificate will do) > 3. Notice the green color of the page's title in the header line that > indicates that the peer's certificate is valid > (You can also check C-h v header-line-format RET to validate that the > eww-valid-certificate face is applied to the title portion of the > header line) > 4. Now type R to execute eww-readable > 5. Note that the color of page's title in the header line changed (it is no longer green) Thanks, installed on the emacs-29 branch, and closing the bug. ------------=_1680421262-18525-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 31 Mar 2023 18:55:20 +0000 Received: from localhost ([127.0.0.1]:34515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piJuC-0004yQ-00 for submit@debbugs.gnu.org; Fri, 31 Mar 2023 14:55:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:60818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piJu9-0004y4-A3 for submit@debbugs.gnu.org; Fri, 31 Mar 2023 14:55:18 -0400 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 1piJu7-0005Su-Vm for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2023 14:55:16 -0400 Received: from mail.eshelyaron.com ([107.175.124.16] helo=eshelyaron.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piJu6-0003oG-Bg for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2023 14:55:15 -0400 From: Eshel Yaron DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1680288913; bh=oSmT2iZ5XdDyMWsCTgi1JT5DzJI6+zQ2bmb3LLndlFM=; h=From:To:Subject:Date:From; b=sgVekoOlkJ/8fj8bdak4XrM5sS8ivfcrz2smF4CNSkLOBaMwpLAunt0KHcxRqrSmw ph4LpV7w1vL+sFAzhsc+KPaZjSrnO6g78aprLAbyFWpq2+VMiub/O9JjOpcB1n/xw9 m8GWKxpe3fG0JsRbQRkaab+Mo5HQsBvmktoEP1ag40WVOOEJ7Ki7GGYsEPZLrGdbEz iE5/aG9kW0kyLQbeXeUIfTh2Fhn5aVwNWbOdsJOkGw4vi9H8Zb8uqEEJCPAikYL0m7 8HQPTUt9DUHxVNC4PZsE+Xt9V0P60GOkNOxrymTaCAuQywDDHP6mG1xxfVEugVfFu+ K9fLkupvHaGRQ== To: bug-gnu-emacs@gnu.org Subject: [PATCH] Preserve peer information for web page in eww-readable Date: Fri, 31 Mar 2023 21:55:09 +0300 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=107.175.124.16; envelope-from=me@eshelyaron.com; helo=eshelyaron.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain Tags: patch Hello, Here's a small patch that addresses a slight annoyance in EWW. Cheers, Eshel In GNU Emacs 30.0.50 (build 2, x86_64-apple-darwin22.4.0, NS appkit-2299.50 Version 13.3 (Build 22E252)) of 2023-03-31 built on esmac.lan Repository revision: 73a320801e9af61a48fd0e803afcd02b059b2338 Repository branch: master Windowing system distributor 'Apple', version 10.3.2299 System Description: macOS 13.3 Configured using: 'configure CFLAGS=-O3 --with-native-compilation --with-json --with-tree-sitter' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Preserve-peer-information-for-web-page-in-eww-readab.patch >From ce54c22d01f9b84b4632adb7e294d7e883f33b81 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Fri, 31 Mar 2023 17:54:12 +0300 Subject: [PATCH] Preserve peer information for web page in eww-readable The :peer property in eww-data affects the face of the page title in header-line-format as set by eww-update-header-line-format. Preserving this property in eww-readable avoids having the header line's appearance change when this command is called. * lisp/net/eww.el (eww-readable): Preserve eww-data's :peer property. --- lisp/net/eww.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 1b42ef4e919..a1dd186915e 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -1014,7 +1014,7 @@ eww-readable (list 'base (list (cons 'href base)) (eww-highest-readability dom)) nil (current-buffer)) - (dolist (elem '(:source :url :title :next :previous :up)) + (dolist (elem '(:source :url :title :next :previous :up :peer)) (plist-put eww-data elem (plist-get old-data elem))) (eww--after-page-change))) -- 2.40.0 --=-=-=-- ------------=_1680421262-18525-1--