X-Loop: help-debbugs@HIDDEN Subject: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls Resent-From: Keith Amidon <camalot@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 27 Mar 2025 04:48:01 +0000 Resent-Message-ID: <handler.77299.B.174305083021741 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 77299 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 77299 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.174305083021741 (code B ref -1); Thu, 27 Mar 2025 04:48:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Mar 2025 04:47:10 +0000 Received: from localhost ([127.0.0.1]:46322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1txf92-0005eR-Uy for submit <at> debbugs.gnu.org; Thu, 27 Mar 2025 00:47:10 -0400 Received: from lists.gnu.org ([2001:470:142::17]:40486) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <camalot@HIDDEN>) id 1txV83-0004ON-Fv for submit <at> debbugs.gnu.org; Wed, 26 Mar 2025 14:05:28 -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 <camalot@HIDDEN>) id 1txV7f-0003IW-EZ for bug-gnu-emacs@HIDDEN; Wed, 26 Mar 2025 14:05:06 -0400 Received: from iguana.tulip.relay.mailchannels.net ([23.83.218.253]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <camalot@HIDDEN>) id 1txV7Y-0007x2-QC for bug-gnu-emacs@HIDDEN; Wed, 26 Mar 2025 14:04:58 -0400 X-Sender-Id: dreamhost|x-authsender|camalot@HIDDEN Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id E9FF9844550 for <bug-gnu-emacs@HIDDEN>; Wed, 26 Mar 2025 18:04:50 +0000 (UTC) Received: from pdx1-sub0-mail-a295.dreamhost.com (trex-3.trex.outbound.svc.cluster.local [100.124.167.123]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 8D023843E9D for <bug-gnu-emacs@HIDDEN>; Wed, 26 Mar 2025 18:04:50 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1743012290; a=rsa-sha256; cv=none; b=LGRbd3LPFkBxiIgSRhAUPYn0AuagDSiabLBxt7fDwRE7QbDkP1l4at+Jz14UeDhKd1OLcC PUshFP31uZ0NaGU5//p7lFlZoKXwdaZ0/EMXtaujVmj2a4eyEux6abfTZeuhlvYDbMxZn0 4qFEueN1Y09BAoyfafeajRj2cJ1uUYWaAnKbJF1tBPFhXhlIVsBEoNsKEgknvAPb8jHLLK Aaam6/nPUVMyIwYszzhPrMpLf6ToZtrkHj0cA2Ee/em++YslXv8oi0rJ5Z4y3mFcWgUINw q4+yCsgeBqdt1JOEYZac5nv3oX9UBd7QBL8ntxB12PR/ET85L8QIasBCD/ZIBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1743012290; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=gl2Hl+GocqZ6Mzx+5dgTvGjf2oFTPMIvcfwKxHeX+Dw=; b=ojWd6U1SeWRQBzsQNVfxHnmP6SWj4B+Br+nu1G9xJD89rghHBikYpRxF82ih4Gb8jnCEpC c3WBZrutOmpJFfivrunWeomvVKvB4MjogkYGT9NER6jYzgWnYIXLABjDhyj107/LOkdFj6 FWg05zhd5K99boa8mvjwlbgxI1xJfxyvrcUMW6tjHg1X7dw6isJNEFvGrlJycHbozRIDUQ uxUwrqekmbO6ZkVbN8KIhL3mFV0JSmPR5Jzgsn9aZt6gEsSxOf0mNVH+yx51zZ/R6CiPyM qeVKa8eElb/59JIYdsxV81BAZpQ8U3BasRsfWDsKrGVUJ7VDK0NGUXmTYn70iw== ARC-Authentication-Results: i=1; rspamd-6d47b56b5b-c5z6w; auth=pass smtp.auth=dreamhost smtp.mailfrom=camalot@HIDDEN X-Sender-Id: dreamhost|x-authsender|camalot@HIDDEN X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|camalot@HIDDEN X-MailChannels-Auth-Id: dreamhost X-Reaction-White: 7083ac9b6d4662b7_1743012290775_3218449632 X-MC-Loop-Signature: 1743012290775:1309741241 X-MC-Ingress-Time: 1743012290775 Received: from pdx1-sub0-mail-a295.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.124.167.123 (trex/7.0.2); Wed, 26 Mar 2025 18:04:50 +0000 Received: from imladris.picnicpark.org (104-50-141-154.lightspeed.sntcca.sbcglobal.net [104.50.141.154]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: camalot@HIDDEN) by pdx1-sub0-mail-a295.dreamhost.com (Postfix) with ESMTPSA id 4ZNF7633TSz74 for <bug-gnu-emacs@HIDDEN>; Wed, 26 Mar 2025 11:04:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=picnicpark.org; s=dreamhost; t=1743012290; bh=gl2Hl+GocqZ6Mzx+5dgTvGjf2oFTPMIvcfwKxHeX+Dw=; h=Date:To:From:Subject:Content-Type:Content-Transfer-Encoding; b=sJUNnWRk8tds7ivHxqyyf4WDIkUM+a/5lobPR3FLKu1xoNnEMAFda0FzFNfhhK2vv cGMe0hIZoEYWlbbAc/5ZM2lFodBT7t5qSkZ+TvR6AqVv+geQMu28e6WQveGnUVUa1F YoqTJDkKNzy7nJY4zBVgWXt9UvWpcuMwYJVnpO5O3CqBNAOnFPEEFJs7qVxBb11PlM 41qwMe6l0sITZK8gBBedLkpj2ixfxMjPQXqnUTefHXi8kjacV+EvfNiqmAZfcqxBpx qzmMenvrs+rmGrq2PwHEsgAzcFN7j3pxuoJzoKEVdUGslEvf0k1E3ayiVBoICXYOri 009zC9MH6yvTw== Received: from [192.168.40.2] (ithil-10Gbps-1.picnicpark.org [192.168.40.2]) by imladris.picnicpark.org (Postfix) with ESMTPSA id 3FC2E51A7BC7 for <bug-gnu-emacs@HIDDEN>; Wed, 26 Mar 2025 11:04:49 -0700 (PDT) Message-ID: <df113cbb-427a-4508-91db-0b1adc4b6b19@HIDDEN> Date: Wed, 26 Mar 2025 11:04:49 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Keith Amidon <camalot@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=23.83.218.253; envelope-from=camalot@HIDDEN; helo=iguana.tulip.relay.mailchannels.net 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Mailman-Approved-At: Thu, 27 Mar 2025 00:47:07 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.1 (/) I'm trying to use eww with: (setq eww-auto-rename-buffer 'title eww-readable-urls '((".*" . t))) I'm expecting that this will result in buffer names reflecting the titles of the HTML pages. However, what I actually see is that all buffers get named "Untitled # EWW", made unique by uniquify. This seems like a bug to me. I believe it arises because the title element of eww-data is set to the empty string by eww--before-browse and then set to the actual title when shr-insert-document csiteslalls the eww-tag-title function via the shr-external-rendering-functions set in eww-display-document. I think that in the readable case, the content passed to shr-insert-document does not include the title element so it isn't available from rendering that content. It appears to me that eww-readable preserves the title in the eww-data plist by resetting it after calling eww-before-browse. And in fact, if I set eww-readable-urls to nil and go to a site, the buffer is properly named based on the title. If I then call eww-readable, it remains named based on the title. The default readability based-on eww-readable-urls appears to happen in eww-display-html, which itself calls eww-display-document. The full document hasn't been rendered at this point so there is no existing title to preserve. I don't think there is a simple fix for this. The fundamental problem is that eww only gets the title by rendering the original document and in the case of default readable URLs it never renders the original document. I thought it might be possible to hack eww-score-readability to include the title in the readable version but it appears that it is omitting the entire head section currently, so it would need fairly extensive changes to selectively pass through the title without any other head elements. Help with this would be appreciated. Thanks! --- Keith
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Keith Amidon <camalot@HIDDEN> Subject: bug#77299: Acknowledgement (eww-auto-rename-buffer 'title interaction with eww-readable-urls) Message-ID: <handler.77299.B.174305083021741.ack <at> debbugs.gnu.org> References: <df113cbb-427a-4508-91db-0b1adc4b6b19@HIDDEN> X-Gnu-PR-Message: ack 77299 X-Gnu-PR-Package: emacs Reply-To: 77299 <at> debbugs.gnu.org Date: Thu, 27 Mar 2025 04:48:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 77299 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 77299: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D77299 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 27 Mar 2025 08:23:03 +0000 Resent-Message-ID: <handler.77299.B77299.174306374025801 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 77299 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Keith Amidon <camalot@HIDDEN> Cc: 77299 <at> debbugs.gnu.org Received: via spool by 77299-submit <at> debbugs.gnu.org id=B77299.174306374025801 (code B ref 77299); Thu, 27 Mar 2025 08:23:03 +0000 Received: (at 77299) by debbugs.gnu.org; 27 Mar 2025 08:22:20 +0000 Received: from localhost ([127.0.0.1]:47291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1txiVG-0006hk-Tx for submit <at> debbugs.gnu.org; Thu, 27 Mar 2025 04:22:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58340) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1txiVE-0006ge-3p for 77299 <at> debbugs.gnu.org; Thu, 27 Mar 2025 04:22:16 -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 <eliz@HIDDEN>) id 1txiV8-0000Or-M6; Thu, 27 Mar 2025 04:22:10 -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=AwvLfNJxG9D8ONewpR6o5cQVmrF+wmyDiZux3IeqogY=; b=lZEM0K136kJO 5iEEvr7QIlb3IQx4DR9bfBF6IKaOaF+9+4HELUASRpeAeJUiIfz+rOdki/js4REgPVVrq13Qbs1KS EUoKEhlBe7BqTdk3Gil/ApzztWN91i2NeOTBjQrgrtjaCYtCMAMqOoCHc4CwJDS3p5NMHvcrdP5Ry tcAyzcNN/HT1G7xEt+eXO+N7hwAeFDIM8S2XeDemxwT3etBRW/Ou3ghN42K+k58AOuUTTJEcORAMO y7zNqepaN0XBJElwKDi4d9qEC2am+aHsNRJxrMC2Aq3m157omd1I+wCXtday5KbFly5kBhU5U5BzS xki5y5KFhVFUsufMNdSimw==; Date: Thu, 27 Mar 2025 10:22:08 +0200 Message-Id: <86iknudgsv.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <df113cbb-427a-4508-91db-0b1adc4b6b19@HIDDEN> (message from Keith Amidon on Wed, 26 Mar 2025 11:04:49 -0700) References: <df113cbb-427a-4508-91db-0b1adc4b6b19@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Wed, 26 Mar 2025 11:04:49 -0700 > From: Keith Amidon <camalot@HIDDEN> > > I'm trying to use eww with: > > (setq eww-auto-rename-buffer 'title > eww-readable-urls '((".*" . t))) > > I'm expecting that this will result in buffer names reflecting > the titles of the HTML pages. However, what I actually see is > that all buffers get named "Untitled # EWW", made unique by > uniquify. > > This seems like a bug to me. > > I believe it arises because the title element of eww-data is set > to the empty string by eww--before-browse and then set to the > actual title when shr-insert-document csiteslalls the eww-tag-title > function via the shr-external-rendering-functions set in > eww-display-document. > > I think that in the readable case, the content passed to > shr-insert-document does not include the title element so > it isn't available from rendering that content. > > It appears to me that eww-readable preserves the title > in the eww-data plist by resetting it after calling > eww-before-browse. And in fact, if I set eww-readable-urls to > nil and go to a site, the buffer is properly named based on > the title. If I then call eww-readable, it remains named > based on the title. > > The default readability based-on eww-readable-urls appears > to happen in eww-display-html, which itself calls > eww-display-document. The full document hasn't been rendered > at this point so there is no existing title to preserve. > > I don't think there is a simple fix for this. The fundamental > problem is that eww only gets the title by rendering the > original document and in the case of default readable URLs > it never renders the original document. I thought it might be > possible to hack eww-score-readability to include the title > in the readable version but it appears that it is omitting the > entire head section currently, so it would need fairly > extensive changes to selectively pass through the title > without any other head elements. I agree with your analysis: it's a design problem, which prevents shr-insert-document from calling eww-tag-title, and thus the title remains the empty string. IOW, eww-readable-urls is currently incompatible with eww-auto-rename-buffer, and moreover, it causes the URL to be shown as "untitled", even if eww-auto-rename-buffer is not used. Hopefully, someone who knows this code and how shr.el works will be able to come up with a solution. One possible way is to find the title before calling shr-insert-document, and then manually setting the :title property of eww-data when shr-insert-document returns.
X-Loop: help-debbugs@HIDDEN Subject: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls Resent-From: Keith Amidon <camalot@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 13 May 2025 14:28:01 +0000 Resent-Message-ID: <handler.77299.B77299.17471464374124 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 77299 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 77299 <at> debbugs.gnu.org Received: via spool by 77299-submit <at> debbugs.gnu.org id=B77299.17471464374124 (code B ref 77299); Tue, 13 May 2025 14:28:01 +0000 Received: (at 77299) by debbugs.gnu.org; 13 May 2025 14:27:17 +0000 Received: from localhost ([127.0.0.1]:60779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uEqbE-00014R-GB for submit <at> debbugs.gnu.org; Tue, 13 May 2025 10:27:17 -0400 Received: from aye.elm.relay.mailchannels.net ([23.83.212.6]:13541) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <camalot@HIDDEN>) id 1uEqbA-00014H-Vt for 77299 <at> debbugs.gnu.org; Tue, 13 May 2025 10:27:14 -0400 X-Sender-Id: dreamhost|x-authsender|camalot@HIDDEN Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 41F72780BB8; Tue, 13 May 2025 14:27:11 +0000 (UTC) Received: from pdx1-sub0-mail-a291.dreamhost.com (100-112-107-13.trex-nlb.outbound.svc.cluster.local [100.112.107.13]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id AAF69782B8E; Tue, 13 May 2025 14:27:10 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1747146430; a=rsa-sha256; cv=none; b=SJRTu3qTEBYQ0c20cdXamS152VBoFLvi/lx0lNTnm8D5hD2akWzAu8YU4q1N0CiXD7BI0K BIdAZ6wBhSlKVfcvt7+47z8SW9TupQ+RTuy/Cc9F29Dy4xcz1ldhnXcfRYH5Pdc+m7aRC5 Gxi0BoUsSiigj27h5GsuhtOvJwt82jX3dlkPLjWfb2cEDzWgnvT2ivLc/ZIxoMGLeog/6j BuqvRRkOgPQukN7g4WDUlA0pnOHK4WNKWa3G5Mz5lisBZgIpbGHpGEuACn3/y5beIpZn7j TXueR/Nv4DIjDDIqsyO4i0+XeT2ZSR9sLj1hO9PIUHo3OWLIydtY8CE3b8uVyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1747146430; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=vsl4omR3UCAXDfpqO/Ssf45vGrmiMyslvOqjxHTWqa0=; b=5DrGQxnr/PDWVVjtgNdLU8alvqFzOjdFEt7QmrJz/hXe70vntewaCWFEbo63S7SqvPdPUn 96xbKNeAtCnt4jeZQq7LFuG0e6rZiIemZzQwJsiFokD6g5S2gYqow9QamRUHKxXA27glzd iuYin8//1LszjzSSVjMMOD7az1dY+aPUj6bjrc7aE3c6lns96YZy82BoE+O7yF2LSfvQcc JzP9WcEO1mqjGbBfXHdxySORhETxL1Pu6GrUiiBKlenKYvoMPmF88qU9AbxWXdj0qjxtSK w6lbarnIpMGbzCXJgakBE/uapUBWpLpKlkxDGVXd8ruA283XAlIwt8e7Em2IpQ== ARC-Authentication-Results: i=1; rspamd-5dcf5fb4c6-rtxgn; auth=pass smtp.auth=dreamhost smtp.mailfrom=camalot@HIDDEN X-Sender-Id: dreamhost|x-authsender|camalot@HIDDEN X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|camalot@HIDDEN X-MailChannels-Auth-Id: dreamhost X-Supply-Wide-Eyed: 04343a72601d579a_1747146430923_2738472566 X-MC-Loop-Signature: 1747146430923:171739618 X-MC-Ingress-Time: 1747146430923 Received: from pdx1-sub0-mail-a291.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.112.107.13 (trex/7.0.3); Tue, 13 May 2025 14:27:10 +0000 Received: from imladris.picnicpark.org (104-50-141-154.lightspeed.sntcca.sbcglobal.net [104.50.141.154]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: camalot@HIDDEN) by pdx1-sub0-mail-a291.dreamhost.com (Postfix) with ESMTPSA id 4Zxf1p3KBwz6x; Tue, 13 May 2025 07:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=picnicpark.org; s=dreamhost; t=1747146430; bh=vsl4omR3UCAXDfpqO/Ssf45vGrmiMyslvOqjxHTWqa0=; h=Content-Type:Date:Subject:To:Cc:From; b=dL5YoMA9IWA1diqh+d2OD54xturSdcmaUTrf1UNU1UA727XomaRgIoKEpIOn1E4VP AXVetIWtS68H7z5GNDtG0MNFdeVFEOxOC2fU5wb5gt++EdnKl8yHucSIZIEEQGEyA5 kWggCVsrmlznFWOJ0OJGIFcVVrOfkQJ2AjCFMkOmQaMF67NO4V0/S+G0xqwkhjPdlP w3ZzEsWywwVWmzETLS5pqYFvMu8w+n4B1vTRR6VxWm6jU/4W2v2xfMfvjrI+DOtofT hduW28icn6xQJmg/lzrDvr1zXR93K5CoK2lvpNydztpW6QhY9OIbr3nDLF6JJAYpSk eL4axejFmMgaA== Received: from [192.168.40.2] (ithil-10Gbps-1.picnicpark.org [192.168.40.2]) by imladris.picnicpark.org (Postfix) with ESMTPSA id 5337F51A006D; Tue, 13 May 2025 07:27:09 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------00j1M0BpwdHtBulAkzel2omw" Message-ID: <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@HIDDEN> Date: Tue, 13 May 2025 07:27:09 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird References: <df113cbb-427a-4508-91db-0b1adc4b6b19@HIDDEN> <86iknudgsv.fsf@HIDDEN> Content-Language: en-US From: Keith Amidon <camalot@HIDDEN> In-Reply-To: <86iknudgsv.fsf@HIDDEN> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) This is a multi-part message in MIME format. --------------00j1M0BpwdHtBulAkzel2omw Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 3/27/25 01:22, Eli Zaretskii wrote: >> Date: Wed, 26 Mar 2025 11:04:49 -0700 >> From: Keith Amidon<camalot@HIDDEN> >> >> I'm trying to use eww with: >> >> (setq eww-auto-rename-buffer 'title >> eww-readable-urls '((".*" . t))) >> >> I'm expecting that this will result in buffer names reflecting >> the titles of the HTML pages. However, what I actually see is >> that all buffers get named "Untitled # EWW", made unique by >> uniquify. >> >> This seems like a bug to me. >> >> I believe it arises because the title element of eww-data is set >> to the empty string by eww--before-browse and then set to the >> actual title when shr-insert-document csiteslalls the eww-tag-title >> function via the shr-external-rendering-functions set in >> eww-display-document. >> >> I think that in the readable case, the content passed to >> shr-insert-document does not include the title element so >> it isn't available from rendering that content. >> >> It appears to me that eww-readable preserves the title >> in the eww-data plist by resetting it after calling >> eww-before-browse. And in fact, if I set eww-readable-urls to >> nil and go to a site, the buffer is properly named based on >> the title. If I then call eww-readable, it remains named >> based on the title. >> >> The default readability based-on eww-readable-urls appears >> to happen in eww-display-html, which itself calls >> eww-display-document. The full document hasn't been rendered >> at this point so there is no existing title to preserve. >> >> I don't think there is a simple fix for this. The fundamental >> problem is that eww only gets the title by rendering the >> original document and in the case of default readable URLs >> it never renders the original document. I thought it might be >> possible to hack eww-score-readability to include the title >> in the readable version but it appears that it is omitting the >> entire head section currently, so it would need fairly >> extensive changes to selectively pass through the title >> without any other head elements. > I agree with your analysis: it's a design problem, which prevents > shr-insert-document from calling eww-tag-title, and thus the title > remains the empty string. IOW, eww-readable-urls is currently > incompatible with eww-auto-rename-buffer, and moreover, it causes the > URL to be shown as "untitled", even if eww-auto-rename-buffer is not > used. > > Hopefully, someone who knows this code and how shr.el works will be > able to come up with a solution. One possible way is to find the > title before calling shr-insert-document, and then manually setting > the :title property of eww-data when shr-insert-document returns. > Sorry it took so long for me to get back to looking into this more and thus for the long quote above to re-establish context. I have found that I seem to be able to get eww-auto-rename-buffer 'title, history titles, and org link capture to work with default readable URLs in eww-readable-urls by redefining eww-display-html to: (defun eww-display-html (charset url &optional document point buffer) (let ((source (buffer-substring (point) (point-max)))) (with-current-buffer buffer (plist-put eww-data :source source))) (eww-display-document (or document (eww-document-base url (eww--parse-html-region (point) (point-max) charset))) point buffer) (and (null document) (eww-default-readable-p url) (with-current-buffer buffer (eww-readable 1)))) This is somewhat less efficient than the prior implementation in that the document gets displayed twice for default readable URLs, but it is no worse than not having default readability and manually toggling readability after the page is rendered. I haven't noticed any downsides to this redefinition yet, but I've only been playing around with it for a morning so far. Given it reduces the conflict between eww-readable-urls and multiple other features, it seems worth considering. --- Keith --------------00j1M0BpwdHtBulAkzel2omw Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <div class="moz-cite-prefix">On 3/27/25 01:22, Eli Zaretskii wrote:<br> </div> <blockquote type="cite" cite="mid:86iknudgsv.fsf@HIDDEN"> <blockquote type="cite"> <pre wrap="" class="moz-quote-pre">Date: Wed, 26 Mar 2025 11:04:49 -0700 From: Keith Amidon <a class="moz-txt-link-rfc2396E" href="mailto:camalot@HIDDEN"><camalot@HIDDEN></a> I'm trying to use eww with: (setq eww-auto-rename-buffer 'title eww-readable-urls '((".*" . t))) I'm expecting that this will result in buffer names reflecting the titles of the HTML pages. However, what I actually see is that all buffers get named "Untitled # EWW", made unique by uniquify. This seems like a bug to me. I believe it arises because the title element of eww-data is set to the empty string by eww--before-browse and then set to the actual title when shr-insert-document csiteslalls the eww-tag-title function via the shr-external-rendering-functions set in eww-display-document. I think that in the readable case, the content passed to shr-insert-document does not include the title element so it isn't available from rendering that content. It appears to me that eww-readable preserves the title in the eww-data plist by resetting it after calling eww-before-browse. And in fact, if I set eww-readable-urls to nil and go to a site, the buffer is properly named based on the title. If I then call eww-readable, it remains named based on the title. The default readability based-on eww-readable-urls appears to happen in eww-display-html, which itself calls eww-display-document. The full document hasn't been rendered at this point so there is no existing title to preserve. I don't think there is a simple fix for this. The fundamental problem is that eww only gets the title by rendering the original document and in the case of default readable URLs it never renders the original document. I thought it might be possible to hack eww-score-readability to include the title in the readable version but it appears that it is omitting the entire head section currently, so it would need fairly extensive changes to selectively pass through the title without any other head elements. </pre> </blockquote> <pre wrap="" class="moz-quote-pre"> I agree with your analysis: it's a design problem, which prevents shr-insert-document from calling eww-tag-title, and thus the title remains the empty string. IOW, eww-readable-urls is currently incompatible with eww-auto-rename-buffer, and moreover, it causes the URL to be shown as "untitled", even if eww-auto-rename-buffer is not used. Hopefully, someone who knows this code and how shr.el works will be able to come up with a solution. One possible way is to find the title before calling shr-insert-document, and then manually setting the :title property of eww-data when shr-insert-document returns. </pre> </blockquote> <pre>Sorry it took so long for me to get back to looking into this more and thus for the long quote above to re-establish context. I have found that I seem to be able to get eww-auto-rename-buffer 'title, history titles, and org link capture to work with default readable URLs in eww-readable-urls by redefining eww-display-html to:</pre> <pre>(defun eww-display-html (charset url &optional document point buffer) (let ((source (buffer-substring (point) (point-max)))) (with-current-buffer buffer (plist-put eww-data :source source))) (eww-display-document (or document (eww-document-base url (eww--parse-html-region (point) (point-max) charset))) point buffer) (and (null document) (eww-default-readable-p url) (with-current-buffer buffer (eww-readable 1)))) </pre> <pre>This is somewhat less efficient than the prior implementation in that the document gets displayed twice for default readable URLs, but it is no worse than not having default readability and manually toggling readability after the page is rendered. I haven't noticed any downsides to this redefinition yet, but I've only been playing around with it for a morning so far. Given it reduces the conflict between eww-readable-urls and multiple other features, it seems worth considering. --- Keith </pre> </body> </html> --------------00j1M0BpwdHtBulAkzel2omw--
X-Loop: help-debbugs@HIDDEN Subject: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls Resent-From: Keith Amidon <camalot@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 09 Jun 2025 13:40:04 +0000 Resent-Message-ID: <handler.77299.B77299.174947634729087 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 77299 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 77299 <at> debbugs.gnu.org Received: via spool by 77299-submit <at> debbugs.gnu.org id=B77299.174947634729087 (code B ref 77299); Mon, 09 Jun 2025 13:40:04 +0000 Received: (at 77299) by debbugs.gnu.org; 9 Jun 2025 13:39:07 +0000 Received: from localhost ([127.0.0.1]:54448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uOciP-0007Yn-Vr for submit <at> debbugs.gnu.org; Mon, 09 Jun 2025 09:39:07 -0400 Received: from toucan.tulip.relay.mailchannels.net ([23.83.218.254]:51955) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <camalot@HIDDEN>) id 1uOciH-0007Xi-HY for 77299 <at> debbugs.gnu.org; Mon, 09 Jun 2025 09:39:02 -0400 X-Sender-Id: dreamhost|x-authsender|camalot@HIDDEN Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 64AA44E3FC5; Mon, 9 Jun 2025 13:38:55 +0000 (UTC) Received: from pdx1-sub0-mail-a309.dreamhost.com (trex-green-1.trex.outbound.svc.cluster.local [100.126.10.183]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id BCE5D4E4372; Mon, 9 Jun 2025 13:38:54 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1749476334; a=rsa-sha256; cv=none; b=h94jiFl9VWZM1V3oDKFObFINnbBxi0oOjaQzOqlgDjmk7vUdmx9D5HcNTrTBePm3I4Ot0R +UNdMuOH6sIbget7DNeIYtBArqlsJ2Us15xb6ZrwX1KcS288DZi/IS4u3B2JU4qCjXkacr u0dQg5Q5BK8w1CaLW+7kLrux6CN28rGsMXGg+FTj/Mc8BXRrQYPZk2OWm4DL9oTG7gZHKj 8QF+bwcTB1jc7dyJHud5nzDQuuD/vhHwI9V8H+9ywCNGJEmDn3GyUQyo90WlcuC5Dt0NEj ibTjOnYInsFvScwMpsqGqussxg4z5/y2+O65xo+JTVHSqPaxr2vq+vJGZkgUMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1749476334; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=jx78DIaX3kEhbjRJg/I8TS+0v3ar5yzAI1R4P3VS8IE=; b=R1H6v4jtCimj7Sd3fvnmUDPFUKU0XlsN6dFRHQLcJJq0nl884SABhxkcymuzVjj8XGRgev vwhortifO8xkQb4LhAPjXF8TvbKGqe7AS5z18mmVa3a6vZkWtHT8ybReiC1PZeR8UpDePX B8CGXAbA6tKsAA7DkRta60zTD3Z7wx6KtDFSu34deQKykfmiyIP9FRcFZT4LjF86FQTxy6 G47vrm+x3qEZWeaW6N7ly+Fh1/PgXVVYRzZZGZ15i/nt/QigVgrP9D/zR9L7uT/NxpzD+7 ROILHNeY+f9KmCafDiiOyxsWUIFtdwcTFIdTrrI9PHCZa0Tcb0VrCC9UqCTA7g== ARC-Authentication-Results: i=1; rspamd-95f6fbf49-l9wn6; auth=pass smtp.auth=dreamhost smtp.mailfrom=camalot@HIDDEN X-Sender-Id: dreamhost|x-authsender|camalot@HIDDEN X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|camalot@HIDDEN X-MailChannels-Auth-Id: dreamhost X-Coil-Thread: 4be7a6a36d4f04db_1749476334988_3226122431 X-MC-Loop-Signature: 1749476334988:28453811 X-MC-Ingress-Time: 1749476334987 Received: from pdx1-sub0-mail-a309.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.126.10.183 (trex/7.0.3); Mon, 09 Jun 2025 13:38:54 +0000 Received: from imladris.picnicpark.org (104-50-141-154.lightspeed.sntcca.sbcglobal.net [104.50.141.154]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: camalot@HIDDEN) by pdx1-sub0-mail-a309.dreamhost.com (Postfix) with ESMTPSA id 4bGCgf4Jb1z95; Mon, 9 Jun 2025 06:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=picnicpark.org; s=dreamhost; t=1749476334; bh=jx78DIaX3kEhbjRJg/I8TS+0v3ar5yzAI1R4P3VS8IE=; h=Content-Type:Date:Subject:From:To:Cc; b=fhGolFbb0By/tCfY3tUbCh6hlVScYsMfnC0ncf1GWceNKMikcMF1VYbJkURLyV1z1 07MCZzabpM9ZBcYSmu0NaKyXTSJ16itqxokuTG06GqxdCxE0sz9cyAxK2A9xAn7V/6 yabyJx6lNEV9C9KRmJBjKcdcqI6DFJzqIxIbRs/suNKJIfP2Vn+CsRcqgBTRPGNEOP Kp7GPvRnG8bNUSPDdp/sLb4JhTw1cSVjJrUpoxFRUwIxswJolK3FVX6tbqNDYDRQxn dVfbzCcFLQmXrg5faGqLcBdimOWTgbegIqgcEzaBI4sV7UjsBFZ5PzekGB+ouY/6dL Q1yTrH+IdIVVg== Received: from [192.168.40.2] (ithil-10Gbps-1.picnicpark.org [192.168.40.2]) by imladris.picnicpark.org (Postfix) with ESMTPSA id 8FA2051A7B0C; Mon, 09 Jun 2025 06:38:53 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------rE5g0e0W0WRhJdxrY0MgZruI" Message-ID: <aabea7d5-598c-4899-b182-bebf05bdfff5@HIDDEN> Date: Mon, 9 Jun 2025 06:38:53 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Keith Amidon <camalot@HIDDEN> References: <df113cbb-427a-4508-91db-0b1adc4b6b19@HIDDEN> <86iknudgsv.fsf@HIDDEN> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@HIDDEN> Content-Language: en-US In-Reply-To: <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@HIDDEN> X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) This is a multi-part message in MIME format. --------------rE5g0e0W0WRhJdxrY0MgZruI Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit A quick update on this: I've been using the version of eww-display-html quoted below regularly since I last commented on the bug about a month ago and think it is working fine. If the approach seems acceptable, I'd be happy to prepare a patch to send to emacs-devel. --- Keith On 5/13/25 07:27, Keith Amidon wrote: > Sorry it took so long for me to get back to looking into this more > and thus for the long quote above to re-establish context. I have > found that I seem to be able to get eww-auto-rename-buffer 'title, > history titles, and org link capture to work with default readable > URLs in eww-readable-urls by redefining eww-display-html to: > (defun eww-display-html (charset url &optional document point buffer) > (let ((source (buffer-substring (point) (point-max)))) > (with-current-buffer buffer > (plist-put eww-data :source source))) > (eww-display-document > (or document > (eww-document-base url (eww--parse-html-region (point) (point-max) charset))) > point buffer) > (and (null document) > (eww-default-readable-p url) > (with-current-buffer buffer > (eww-readable 1)))) > This is somewhat less efficient than the prior implementation in that > the document gets displayed twice for default readable URLs, but it is > no worse than not having default readability and manually toggling > readability after the page is rendered. > > I haven't noticed any downsides to this redefinition yet, but I've > only been playing around with it for a morning so far. Given it > reduces the conflict between eww-readable-urls and multiple other > features, it seems worth considering. > > --- Keith > --------------rE5g0e0W0WRhJdxrY0MgZruI Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <div class="moz-cite-prefix">A quick update on this: I've been using the version of eww-display-html quoted below regularly since I last commented on the bug about a month ago and think it is working fine. If the approach seems acceptable, I'd be happy to prepare a patch to send to emacs-devel. --- Keith</div> <div class="moz-cite-prefix"><br> </div> <div class="moz-cite-prefix">On 5/13/25 07:27, Keith Amidon wrote:</div> <blockquote type="cite" cite="mid:7ecf1a2b-decb-49f3-b869-9bb4f26f2981@HIDDEN"> <pre>Sorry it took so long for me to get back to looking into this more and thus for the long quote above to re-establish context. I have found that I seem to be able to get eww-auto-rename-buffer 'title, history titles, and org link capture to work with default readable URLs in eww-readable-urls by redefining eww-display-html to:</pre> <pre>(defun eww-display-html (charset url &optional document point buffer) (let ((source (buffer-substring (point) (point-max)))) (with-current-buffer buffer (plist-put eww-data :source source))) (eww-display-document (or document (eww-document-base url (eww--parse-html-region (point) (point-max) charset))) point buffer) (and (null document) (eww-default-readable-p url) (with-current-buffer buffer (eww-readable 1)))) </pre> <pre>This is somewhat less efficient than the prior implementation in that the document gets displayed twice for default readable URLs, but it is no worse than not having default readability and manually toggling readability after the page is rendered. I haven't noticed any downsides to this redefinition yet, but I've only been playing around with it for a morning so far. Given it reduces the conflict between eww-readable-urls and multiple other features, it seems worth considering. --- Keith </pre> </blockquote> <p><br> </p> </body> </html> --------------rE5g0e0W0WRhJdxrY0MgZruI--
X-Loop: help-debbugs@HIDDEN Subject: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 11 Jun 2025 11:41:05 +0000 Resent-Message-ID: <handler.77299.B77299.174964204930028 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 77299 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Keith Amidon <camalot@HIDDEN> Cc: 77299 <at> debbugs.gnu.org Received: via spool by 77299-submit <at> debbugs.gnu.org id=B77299.174964204930028 (code B ref 77299); Wed, 11 Jun 2025 11:41:05 +0000 Received: (at 77299) by debbugs.gnu.org; 11 Jun 2025 11:40:49 +0000 Received: from localhost ([127.0.0.1]:47640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uPJp0-0007ni-HJ for submit <at> debbugs.gnu.org; Wed, 11 Jun 2025 07:40:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51804) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uPJou-0007mw-Vp for 77299 <at> debbugs.gnu.org; Wed, 11 Jun 2025 07:40:42 -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 <eliz@HIDDEN>) id 1uPJoi-0001sK-NE; Wed, 11 Jun 2025 07:40:30 -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=bBxSrJPO7nHlbNdo6xbDq9R/+4bp/PXr9hbbER71xjQ=; b=f+hgY0dNAZYA ke28ZIxQd++cUcQnL5IebfFbh6pUgugCTF9C5Vyy3mFClwX6P84FJRlXP+aViF9QCKIgVw2w3SFIt 5tLoFDXpCKc9EE0HsI5Q7grE2a3ZTyEX0awrHvsiK9nXuypc301NEhNgdjoZm3w5h780+y/pThW6D hmof9hN9mWr/p9lEH7K1UvDgNgM+NIc+k++LejuF3ZVGJJdd8Zogw4mG4t7YKs2yewlnzxPXQ6TSL 67Vifrbh1ubIMSby5N+eQQexlrf9vqWELCQvrtAW4r+JwK4RFTL15jsdC47w0hN1z7OSDjQrH5q8C k4P8CRug53sqZANB4epGpA==; Date: Wed, 11 Jun 2025 14:33:09 +0300 Message-Id: <86zfeeecne.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <aabea7d5-598c-4899-b182-bebf05bdfff5@HIDDEN> (message from Keith Amidon on Mon, 9 Jun 2025 06:38:53 -0700) References: <df113cbb-427a-4508-91db-0b1adc4b6b19@HIDDEN> <86iknudgsv.fsf@HIDDEN> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@HIDDEN> <aabea7d5-598c-4899-b182-bebf05bdfff5@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Mon, 9 Jun 2025 06:38:53 -0700 > From: Keith Amidon <camalot@HIDDEN> > Cc: 77299 <at> debbugs.gnu.org > > A quick update on this: I've been using the version of eww-display-html quoted below regularly since I last > commented on the bug about a month ago and think it is working fine. If the approach seems acceptable, I'd > be happy to prepare a patch to send to emacs-devel. --- Keith Please do post a patch, and thanks.
X-Loop: help-debbugs@HIDDEN Subject: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls Resent-From: Jim Porter <jporterbugs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 11 Jun 2025 17:12:02 +0000 Resent-Message-ID: <handler.77299.B77299.17496618741429 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 77299 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Keith Amidon <camalot@HIDDEN>, Eli Zaretskii <eliz@HIDDEN> Cc: 77299 <at> debbugs.gnu.org Received: via spool by 77299-submit <at> debbugs.gnu.org id=B77299.17496618741429 (code B ref 77299); Wed, 11 Jun 2025 17:12:02 +0000 Received: (at 77299) by debbugs.gnu.org; 11 Jun 2025 17:11:14 +0000 Received: from localhost ([127.0.0.1]:51039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uPOyn-0000Mz-La for submit <at> debbugs.gnu.org; Wed, 11 Jun 2025 13:11:13 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:54287) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <jporterbugs@HIDDEN>) id 1uPOym-0000Ma-2p for 77299 <at> debbugs.gnu.org; Wed, 11 Jun 2025 13:11:12 -0400 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-23508d30142so831945ad.0 for <77299 <at> debbugs.gnu.org>; Wed, 11 Jun 2025 10:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749661866; x=1750266666; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=un7fjcfjENTV4PE/15Q/dp0aZNogeIBgamNMqEen9os=; b=D+3wBSLtPMwFtUNzTs2muqhtO/9QmDtxz+CiKqdR5bUf3ZUJMLW9HiY1yPBbD7O+cs w2uvnOizxbeLvxge7RaXfxK3im0wTjq1RSYfA165ProTsTuF+nTghJFtQLcuFXIst9yq OZ1Eb8Rz+s6h5HHPZGOpwOcjJONcdg1+8Mhs+B4ZeMXuN+TkdzY1oNvLGfW1TinEWR0w lLe2MNK3Lora3gISNvhJIj885n0KLjrmPyLh5Mcf3P0rE6wFrPgJlP9Sie814gNlRVMO 3zyNT4z23We0I1/bUtX56vJdnm8kF1ztU86N7ZrNjPz5r6B8vGwFJSFfKfsPYCuem65C OI5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749661866; x=1750266666; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=un7fjcfjENTV4PE/15Q/dp0aZNogeIBgamNMqEen9os=; b=NsJ81Zue5YsDlCzPn6KhVEmjkll7JNSlBkKWONUZnknh3YQbLxSeROUbOWO7dwvopK DBNd/hDvKE5ECD0byrmd/+kA+iGxtls6b7Ys1L+OFVC0CSqRZk67aIZ2dsLo9eeIN1lW kcl12ChncZC+i+0qFaLJFCr0vGQQu7zGEGvns35V86q4tGmDanYwH2tJksJHaPNlSBsm wH3CXIlwoLnzIO+F9ki+QSSet+LLWs5t2x1wWL5INbnrgS83XFrsHBXugZY7S5F199kE srKpqTSBi2YdR1p1TvTc30WQcbUP+STorVmZ8tv5+gk4jkz9z5UYq7G/kxYkSpgdEfd2 3r+A== X-Gm-Message-State: AOJu0Yxcd/6UMYmscJwkJcVaco3fljy+NkSJ3Ik5wHIM9+jaI2Q0005Q 3OMqjt6vNClsmhPtCTw2jz2EkOsaOAGBWE/iMfr8op6MOnlXcDGVfrra X-Gm-Gg: ASbGnctLUV0roukyTKEVhPWlDARtWBwBNkFw7leT8M+BKPUrs+1//hwo/cX/cv76nlr hi1/UkYXEUjhyue/NycDkv2XYzg0+l848cgeLvMXAgxFpmEKNJuAKogR5TdIFJD4lYR+xMt7+Zf xTDOVfjhU8gzU9iJwwUdYQWplPkx+JLfCpSerVZ4+ZkBMVmCsUA52Zi1emHLeA36F0tNsX85yfQ d7LZeLRndUVtq1nkEXSOc9+7qKaML0WhAZbX9Jgaz2gPupLnYxfpxxa2J5472WhRfMoTlKmJXn0 wQocddD2EBVb1wIoNtNPzv0mzvKa3Gdh99oTWayAtNRZecXFbcMKAdWCI35/8dpNtzsWAf1xADR Hd+XTjXm4EM6YeQMNhkzKkAxGtCIHRVcW+2XSrd2OcA== X-Google-Smtp-Source: AGHT+IFVzeA/fZPmbRI6TAbML4aWJ4at21YvMTp+/K8BJYQXriXWEnNanxVUW262vUqnbuU6W/qOHw== X-Received: by 2002:a17:903:2ac4:b0:234:ed31:fcaa with SMTP id d9443c01a7336-2364ca8aeecmr3981305ad.50.1749661865617; Wed, 11 Jun 2025 10:11:05 -0700 (PDT) Received: from [192.168.1.2] (syn-076-168-144-128.res.spectrum.com. [76.168.144.128]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-2360350808csm90212835ad.241.2025.06.11.10.11.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Jun 2025 10:11:05 -0700 (PDT) Message-ID: <274d66da-d91d-821b-b1a5-d40263dd368e@HIDDEN> Date: Wed, 11 Jun 2025 10:11:03 -0700 MIME-Version: 1.0 Content-Language: en-US References: <df113cbb-427a-4508-91db-0b1adc4b6b19@HIDDEN> <86iknudgsv.fsf@HIDDEN> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@HIDDEN> <aabea7d5-598c-4899-b182-bebf05bdfff5@HIDDEN> From: Jim Porter <jporterbugs@HIDDEN> In-Reply-To: <aabea7d5-598c-4899-b182-bebf05bdfff5@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 6/9/2025 6:38 AM, Keith Amidon wrote: > A quick update on this: I've been using the version of eww-display-html > quoted below regularly since I last commented on the bug about a month > ago and think it is working fine. If the approach seems acceptable, I'd > be happy to prepare a patch to send to emacs-devel. --- Keith I think I'd prefer a solution that doesn't require a workaround like this. If we could get a fix that resolves this issue without the workaround, I think that would be best. The code would be more maintainable, and we'd likely have fewer problems in this area in the future.
X-Loop: help-debbugs@HIDDEN Subject: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls Resent-From: Jim Porter <jporterbugs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 11 Jun 2025 19:18:02 +0000 Resent-Message-ID: <handler.77299.B77299.174966944416645 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 77299 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Keith Amidon <camalot@HIDDEN>, Eli Zaretskii <eliz@HIDDEN> Cc: 77299 <at> debbugs.gnu.org Received: via spool by 77299-submit <at> debbugs.gnu.org id=B77299.174966944416645 (code B ref 77299); Wed, 11 Jun 2025 19:18:02 +0000 Received: (at 77299) by debbugs.gnu.org; 11 Jun 2025 19:17:24 +0000 Received: from localhost ([127.0.0.1]:51712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uPQwu-0004KP-8t for submit <at> debbugs.gnu.org; Wed, 11 Jun 2025 15:17:24 -0400 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:59787) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <jporterbugs@HIDDEN>) id 1uPQwr-0004K8-LL for 77299 <at> debbugs.gnu.org; Wed, 11 Jun 2025 15:17:22 -0400 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-2349f096605so2334525ad.3 for <77299 <at> debbugs.gnu.org>; Wed, 11 Jun 2025 12:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749669434; x=1750274234; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=NvSLR/qFdZAHCPU94Jp2Xi7kv72n+x2FvZKTEfa/7hQ=; b=ZFMTwB/xONTU5yM1qcC6KxmUB+fs2xqWbyC5CbQEg8Vha+SWOmfaLI4ARaMEMK/eOH 0/+8ZkdzpxMGKAz/Yso7PNW/0Osf47SJ3rbLa8P+c6KuzzblSOzdxiZA7wrn1f64E7mS B90QIvannycUEmu0nmK6brfXGbOek+UKKhJO8ccNMgwO+LfJytF4gyfHKbw5EOj+AD4g j1zlp46MTVlRSGqWQCfFL0zuE0FPVzGojmfKeyPChxo2QpS3+AHz9BOV+TuUNPZWzqgC sx5hDg5EyW+R74+0F0n6rxypZps+cpVUUz0cQgshg6Xfb2uM/I+oS5QjugTrQFzjzXHG /ZUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749669434; x=1750274234; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NvSLR/qFdZAHCPU94Jp2Xi7kv72n+x2FvZKTEfa/7hQ=; b=LadtZvBXSwBlVJgR4OozjU65wDD0ELs2MCjJ1tPwhIdpjj8jrmz0lewgug4x2eBq7T rK38nmBM+O3A36UE7Q1CygxicNWsUwzp8c7R9n8zDmPx+ysfs/N9ctrae5gm7yCY9i4G Itsyd65U7YUOvCo5J0ZPtFWZbqa3MiqCxiHV2ijTw7jXaY+lIng04+NYJSuRW0VJbR/+ o38y2tbob/XYuyZ99wBFCd6vMU4/4tUQly4K4xjq0CiX1NpnudLE8TbVg5wgKNkhuxSY USYzs7C+L3S6O7gXBZloPpDiK/LFpPQm2gkYL76VGMjGN28+OkP1wLH8qgUQyqKZZH3A RrSQ== X-Gm-Message-State: AOJu0YwhtoMPdpEGUbQm7Ue0IzW9BhG3Vkjsv0BjWwLjlKWVhL7AtRo1 8WcAxWHtkhUSNIzuWGlJ5lTi89PxVUxgT+NHDZe/zKNIdusAa0nPnG+O X-Gm-Gg: ASbGncs4akl2IAjnxLHWqnk+bcRwhEvCvBwi/0YEZrcfixPU227SlvA066q6DV6tVig cdNrTgIg8r3qrCJdmf7qqWHuOYZ7QFgVPKWRBfyFuVQ7t/m/AmZ4+9VwYVn8EIhzoT8Eks/slLQ 0o++G3TVGYc7bUZH9igc+6f0UrMupq5FjA150G7NGXOByMeNctmncHhvNheeWwEfxdIYzClpAxX 4Fs3OF18PdjUWZZ6HwRLMAgllkciyVSYSoF67V2T83g7rAV5QpSc7SLSQNrMNZ+XwuJIdEr696i ykvZqw3/cGr75XE4NqXH3m39pFf3WC6QrYtvMvFTvwl00fm1LCmqcF2wQl6+bripzgrb5RWCHM/ vtFA+NJOR+Ja4F2z4fdVgpvMi4uLWjN9Ab9GY53TaQA== X-Google-Smtp-Source: AGHT+IFN9Q/pb7PUpMv/bU76qvsjaB9rcPmsmArXMMSC+hEYdhE3k8HyxxnGeLpc3zJbtqsYbcYKLQ== X-Received: by 2002:a17:903:283:b0:224:23be:c569 with SMTP id d9443c01a7336-2364d66027cmr4384245ad.22.1749669434084; Wed, 11 Jun 2025 12:17:14 -0700 (PDT) Received: from [192.168.1.2] (syn-076-168-144-128.res.spectrum.com. [76.168.144.128]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-236038712b8sm90791155ad.88.2025.06.11.12.17.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Jun 2025 12:17:13 -0700 (PDT) Message-ID: <b174dd8e-5e56-dc46-9140-634ee3bd7636@HIDDEN> Date: Wed, 11 Jun 2025 12:17:12 -0700 MIME-Version: 1.0 Content-Language: en-US From: Jim Porter <jporterbugs@HIDDEN> References: <df113cbb-427a-4508-91db-0b1adc4b6b19@HIDDEN> <86iknudgsv.fsf@HIDDEN> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@HIDDEN> <aabea7d5-598c-4899-b182-bebf05bdfff5@HIDDEN> <274d66da-d91d-821b-b1a5-d40263dd368e@HIDDEN> In-Reply-To: <274d66da-d91d-821b-b1a5-d40263dd368e@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 6/11/2025 10:11 AM, Jim Porter wrote: > I think I'd prefer a solution that doesn't require a workaround like > this. If we could get a fix that resolves this issue without the > workaround, I think that would be best. That was a bit redundant. Serves me right to try and reply while I'm distracted. But you get the idea...
X-Loop: help-debbugs@HIDDEN Subject: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 11 Jun 2025 19:31:01 +0000 Resent-Message-ID: <handler.77299.B77299.174967025719312 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 77299 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jim Porter <jporterbugs@HIDDEN> Cc: 77299 <at> debbugs.gnu.org, camalot@HIDDEN Received: via spool by 77299-submit <at> debbugs.gnu.org id=B77299.174967025719312 (code B ref 77299); Wed, 11 Jun 2025 19:31:01 +0000 Received: (at 77299) by debbugs.gnu.org; 11 Jun 2025 19:30:57 +0000 Received: from localhost ([127.0.0.1]:51759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uPRA0-00051P-QR for submit <at> debbugs.gnu.org; Wed, 11 Jun 2025 15:30:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50274) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uPR9x-00051B-Qm for 77299 <at> debbugs.gnu.org; Wed, 11 Jun 2025 15:30:54 -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 <eliz@HIDDEN>) id 1uPR9r-00021j-TS; Wed, 11 Jun 2025 15:30:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=1LI7+rmHchUWxFeMnpDXgeG0Y9t05PnWgf79uxYJiQs=; b=l/VTbET8P6yH3p1wViIf k8dwFkRarAQkL5DCG7YFEed5K05t0jJ0zudpgRH//s+FMEUZG7y/+YL4wTqNitt3vDNjUyccuY//V nWbHMaB/fdc5Slo11IhqRK0ssOKYfJznnAGbTwSGtKL7G3C5xmijlMCHQriorCEAWvBKoSb6LbGka mHOSclJSs88X0EBTp3p51qx3LH5NzeVA8Zyk7o2sLnR+TUjBEnueIVL4gQMU/KrXyuNaHJ6CdLcdS 2KeDGvo1qAYhvwJkVTNrCfqUAQn8y24Ky2kTLkKQH0UbDxWbdzbfnCARJEgSPmCDqLseyLKf4jGP/ xXH8ktrLnrc4aQ==; Date: Wed, 11 Jun 2025 22:30:45 +0300 Message-Id: <86jz5igjoa.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <274d66da-d91d-821b-b1a5-d40263dd368e@HIDDEN> (message from Jim Porter on Wed, 11 Jun 2025 10:11:03 -0700) References: <df113cbb-427a-4508-91db-0b1adc4b6b19@HIDDEN> <86iknudgsv.fsf@HIDDEN> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@HIDDEN> <aabea7d5-598c-4899-b182-bebf05bdfff5@HIDDEN> <274d66da-d91d-821b-b1a5-d40263dd368e@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Wed, 11 Jun 2025 10:11:03 -0700 > Cc: 77299 <at> debbugs.gnu.org > From: Jim Porter <jporterbugs@HIDDEN> > > On 6/9/2025 6:38 AM, Keith Amidon wrote: > > A quick update on this: I've been using the version of eww-display-html > > quoted below regularly since I last commented on the bug about a month > > ago and think it is working fine. If the approach seems acceptable, I'd > > be happy to prepare a patch to send to emacs-devel. --- Keith > > I think I'd prefer a solution that doesn't require a workaround like > this. What workaround are you alluding to? > If we could get a fix that resolves this issue without the > workaround, I think that would be best. Feel free to suggest a way if you see it. Both Keith and myself looked at the code and concluded that it would be impossible without completely rewriting this functionality. See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77299#8
X-Loop: help-debbugs@HIDDEN Subject: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls Resent-From: Jim Porter <jporterbugs@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 11 Jun 2025 22:18:03 +0000 Resent-Message-ID: <handler.77299.B77299.17496802528093 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 77299 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 77299 <at> debbugs.gnu.org, camalot@HIDDEN Received: via spool by 77299-submit <at> debbugs.gnu.org id=B77299.17496802528093 (code B ref 77299); Wed, 11 Jun 2025 22:18:03 +0000 Received: (at 77299) by debbugs.gnu.org; 11 Jun 2025 22:17:32 +0000 Received: from localhost ([127.0.0.1]:52866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uPTlE-00026S-1E for submit <at> debbugs.gnu.org; Wed, 11 Jun 2025 18:17:32 -0400 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]:57839) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <jporterbugs@HIDDEN>) id 1uPTlB-00025q-Pk for 77299 <at> debbugs.gnu.org; Wed, 11 Jun 2025 18:17:30 -0400 Received: by mail-pj1-x1029.google.com with SMTP id 98e67ed59e1d1-306b6ae4fb2so332651a91.3 for <77299 <at> debbugs.gnu.org>; Wed, 11 Jun 2025 15:17:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749680243; x=1750285043; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=pClbet5M+zhjg/ds8+2lYBr9oLRrOAwgHYeNtaIyFfY=; b=in0TdIaN9O0rWEnxYh1EoXCQYS+b81QFflVVK5vVSmWzNQIqhCmnCNp60YgoNXGPaJ 875ou/iVrSaEdIBEcH9dhVwBs+yC2Z1UdoK0IHqF4/BbWgEj1gWUQAE6GqCkSJU/j9v9 kFcZdcJUK15LS+HjMXxDc0c8u5hFhZnn2aay8PS8tTo8FWTRdqtq5XcakWAlbsN2FzFj Vhv7ykpmr7aV7CNoArhuMyzMpzIC7uf5859ytHdRC9xHEQ6TVaJeJwYkg7zwhBSo+yap fYsIMzC1S+IKAxoXlLkhPC9nbFN/BCmtnMHPFwcCTaxM6/WToci2g45tKWNa1P5S9VNT 116A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749680243; x=1750285043; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pClbet5M+zhjg/ds8+2lYBr9oLRrOAwgHYeNtaIyFfY=; b=JMEfN26EoQ6Vcd7jmbcP7SgvFo6yoGypYvw39M/pe9anUb8xJE/ft3tJFsIhx2HQMt sV7yBZ5L3vi83kWoIK76PkCN0kEwu4kvHG3pfX3+RfYNXhoJ8TFVAQisCRx5DvV4mR1B V6TZvMkrC0+tD3b1687avfsQSeA7TNpOPdKt+HJ3EPhOodp/oTxR44ftkzDrKRplgh2c +GbkgXsFcnpsMzAwcGtD9tchJFnYs/N1y5cnW+Ck6JYY/E8xC18o5y03Di9XE95HDno+ cYof+H4cLMFE9vyWhY8kUeSSUR7aPBWKORMKDLKYpKZV9e6pzFuRVSlypFTYGGp7hWk1 pXgA== X-Gm-Message-State: AOJu0YzFUKRRwuBa/vxgrnb3LcwKFTPz9pAX5FGnr6eHMIekmPNsoqAH xxez9CFBIt6vUZpnFdT6PUL0cM7yaugo8Ci+nqtGNEzPgrrNciu99fwl X-Gm-Gg: ASbGncvk3N1pIuje3b1czOXakPeZSe2YCzie3kApoZMAfV5bNVnFYTYp5PWineOVHte QYHub0k3Mw3z/WzgtUjeCdXC+Vr1qeHQ0l5SG+AczvgWoYGPGcj0ViZAwTzOvZ0YWeAamN1lWT4 gZ4vG9qEpBqVs5ZvA/oJXWkrJi0RIrWDcS66DuyseWYj/pjCBcp0gWq1c4IEd4cyDhXTduqIfF3 rllOUx8o/GMenUziYVp2tZY/FBgMNLs3tZ4Rs81lloXS5bzjcOP2Nx81Q5jvfhicgbLsHi7dGFZ EeK8p4wsFDbfCctu/eyfRpsh7FrF+t6UdYEtI+WQb2Wy81qCyJNuUpsgNIM0ukZLbzs8atULfP1 ZG1ZJsL8KMmhYlqHmOvRhDdICyLPBCEcQynIJrB/c1w== X-Google-Smtp-Source: AGHT+IEBTqspqqHQQWCoNWSkVofN61RWP/RNTedLXyOMKzq8VVSBIe8bWm9T8z/7AmzXmrBrJtXb6g== X-Received: by 2002:a17:90b:520f:b0:311:fc8b:31b5 with SMTP id 98e67ed59e1d1-313c069ede0mr1200279a91.14.1749680243301; Wed, 11 Jun 2025 15:17:23 -0700 (PDT) Received: from [192.168.1.2] (syn-076-168-144-128.res.spectrum.com. [76.168.144.128]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-2364e61b61fsm768355ad.16.2025.06.11.15.17.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Jun 2025 15:17:22 -0700 (PDT) Message-ID: <c6025ab2-179e-c848-6d6c-4ffc7f7faccb@HIDDEN> Date: Wed, 11 Jun 2025 15:17:21 -0700 MIME-Version: 1.0 Content-Language: en-US References: <df113cbb-427a-4508-91db-0b1adc4b6b19@HIDDEN> <86iknudgsv.fsf@HIDDEN> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@HIDDEN> <aabea7d5-598c-4899-b182-bebf05bdfff5@HIDDEN> <274d66da-d91d-821b-b1a5-d40263dd368e@HIDDEN> <86jz5igjoa.fsf@HIDDEN> From: Jim Porter <jporterbugs@HIDDEN> In-Reply-To: <86jz5igjoa.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 6/11/2025 12:30 PM, Eli Zaretskii wrote: >> Date: Wed, 11 Jun 2025 10:11:03 -0700 >> Cc: 77299 <at> debbugs.gnu.org >> From: Jim Porter <jporterbugs@HIDDEN> >> >> On 6/9/2025 6:38 AM, Keith Amidon wrote: >>> A quick update on this: I've been using the version of eww-display-html >>> quoted below regularly since I last commented on the bug about a month >>> ago and think it is working fine. If the approach seems acceptable, I'd >>> be happy to prepare a patch to send to emacs-devel. --- Keith >> >> I think I'd prefer a solution that doesn't require a workaround like >> this. > > What workaround are you alluding to? Rendering the original document and immediately re-rendering the "readable" form of the document. >> If we could get a fix that resolves this issue without the >> workaround, I think that would be best. > > Feel free to suggest a way if you see it. Both Keith and myself > looked at the code and concluded that it would be impossible without > completely rewriting this functionality. See > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77299#8 I think we could change how we return the readable form of the document. Currently, it returns the DOM node of the section we want to render, but we could instead return a new document with the <title> node plus the DOM node we want to render (ditto for <link> nodes, since we use those for things like 'eww-next-url'). Since scoring the readability of the document requires iterating over every DOM node, we could just collect the extra nodes we care about (like <title>) while iterating. Then it'll be easy to include those nodes in the readable form. Doing it this way should have the benefit that we don't start network requests for images that won't be shown in the readable form of the page.
X-Loop: help-debbugs@HIDDEN Subject: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 12 Jun 2025 06:52:02 +0000 Resent-Message-ID: <handler.77299.B77299.174971110728236 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 77299 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jim Porter <jporterbugs@HIDDEN> Cc: 77299 <at> debbugs.gnu.org, camalot@HIDDEN Received: via spool by 77299-submit <at> debbugs.gnu.org id=B77299.174971110728236 (code B ref 77299); Thu, 12 Jun 2025 06:52:02 +0000 Received: (at 77299) by debbugs.gnu.org; 12 Jun 2025 06:51:47 +0000 Received: from localhost ([127.0.0.1]:55527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uPbmt-0007LL-0o for submit <at> debbugs.gnu.org; Thu, 12 Jun 2025 02:51:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50502) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uPbmq-0007L5-SY for 77299 <at> debbugs.gnu.org; Thu, 12 Jun 2025 02:51:45 -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 <eliz@HIDDEN>) id 1uPbmk-00014o-Qn; Thu, 12 Jun 2025 02:51:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=2FPsk/uKh42WBoKD3wOHxy+clbPJ5yslWinkMnZU57M=; b=mPwGuyiqqXXbeulAnRW9 uLAEFaezV+kkCIbRjGnb6xarwNihV47QYcbbjhnAOLDKCnYkZ+oUpLVAn2+FnVLDPb+BTBSDDVzPl BbBF8vokS8SzIJa6oyd2CwWtdsY5gGIJcQ4Gf84wH5fnhcsBRq5vG7JTaTSnibpQ2537PlL73terc eQvLxkV7mj3YXgDLgwIMh+ApjnlfY2fnrl1PT1lDWUAgQ79cjvTsf2xUsj2VP2gRjwNlgFoZi+eBO U2r6CStMplgwrwcgCfvisSGQzdXKFCSGb5kHCxVEyIKR8DAgn3IKUSazo/i/J7gE0WVQA8xoP1bYC RnhH0/tx+pS/cA==; Date: Thu, 12 Jun 2025 09:51:36 +0300 Message-Id: <861prph2pz.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <c6025ab2-179e-c848-6d6c-4ffc7f7faccb@HIDDEN> (message from Jim Porter on Wed, 11 Jun 2025 15:17:21 -0700) References: <df113cbb-427a-4508-91db-0b1adc4b6b19@HIDDEN> <86iknudgsv.fsf@HIDDEN> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@HIDDEN> <aabea7d5-598c-4899-b182-bebf05bdfff5@HIDDEN> <274d66da-d91d-821b-b1a5-d40263dd368e@HIDDEN> <86jz5igjoa.fsf@HIDDEN> <c6025ab2-179e-c848-6d6c-4ffc7f7faccb@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Wed, 11 Jun 2025 15:17:21 -0700 > Cc: 77299 <at> debbugs.gnu.org, camalot@HIDDEN > From: Jim Porter <jporterbugs@HIDDEN> > > On 6/11/2025 12:30 PM, Eli Zaretskii wrote: > >> Date: Wed, 11 Jun 2025 10:11:03 -0700 > >> Cc: 77299 <at> debbugs.gnu.org > >> From: Jim Porter <jporterbugs@HIDDEN> > >> > >> On 6/9/2025 6:38 AM, Keith Amidon wrote: > >>> A quick update on this: I've been using the version of eww-display-html > >>> quoted below regularly since I last commented on the bug about a month > >>> ago and think it is working fine. If the approach seems acceptable, I'd > >>> be happy to prepare a patch to send to emacs-devel. --- Keith > >> > >> I think I'd prefer a solution that doesn't require a workaround like > >> this. > > > > What workaround are you alluding to? > > Rendering the original document and immediately re-rendering the > "readable" form of the document. > > >> If we could get a fix that resolves this issue without the > >> workaround, I think that would be best. > > > > Feel free to suggest a way if you see it. Both Keith and myself > > looked at the code and concluded that it would be impossible without > > completely rewriting this functionality. See > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77299#8 > > I think we could change how we return the readable form of the document. > Currently, it returns the DOM node of the section we want to render, but > we could instead return a new document with the <title> node plus the > DOM node we want to render (ditto for <link> nodes, since we use those > for things like 'eww-next-url'). > > Since scoring the readability of the document requires iterating over > every DOM node, we could just collect the extra nodes we care about > (like <title>) while iterating. Then it'll be easy to include those > nodes in the readable form. > > Doing it this way should have the benefit that we don't start network > requests for images that won't be shown in the readable form of the page. Thanks. That'd be okay, but unless we have such a reimplementation soon, I intend to install the simpler patch proposed by Keith (when he posts it).
X-Loop: help-debbugs@HIDDEN Subject: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls Resent-From: Keith Amidon <camalot@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 12 Jun 2025 12:39:01 +0000 Resent-Message-ID: <handler.77299.B77299.174973194011511 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 77299 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jim Porter <jporterbugs@HIDDEN>, Eli Zaretskii <eliz@HIDDEN> Cc: 77299 <at> debbugs.gnu.org Received: via spool by 77299-submit <at> debbugs.gnu.org id=B77299.174973194011511 (code B ref 77299); Thu, 12 Jun 2025 12:39:01 +0000 Received: (at 77299) by debbugs.gnu.org; 12 Jun 2025 12:39:00 +0000 Received: from localhost ([127.0.0.1]:57191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uPhCt-0002za-IR for submit <at> debbugs.gnu.org; Thu, 12 Jun 2025 08:38:59 -0400 Received: from silver.cherry.relay.mailchannels.net ([23.83.223.166]:28903) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <camalot@HIDDEN>) id 1uPhCo-0002yz-Vo for 77299 <at> debbugs.gnu.org; Thu, 12 Jun 2025 08:38:56 -0400 X-Sender-Id: dreamhost|x-authsender|camalot@HIDDEN Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 209F51840E4; Thu, 12 Jun 2025 12:38:53 +0000 (UTC) Received: from pdx1-sub0-mail-a310.dreamhost.com (100-122-29-246.trex-nlb.outbound.svc.cluster.local [100.122.29.246]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 9E87C183EFA; Thu, 12 Jun 2025 12:38:52 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1749731932; a=rsa-sha256; cv=none; b=0c6WIFc4EXfXkwTkpZYrezXHHV1SVOi0TCSaQwC8w54oisU2Lq2QIXV5R2v+lJB/nHLmmz +pMe8x9ODBZATdo7alEhLQooUwyVHUqIlszdyZPkAAW8X7eIiC1ByiEnEGYHrbOJteDPis NP0a+bDHn9UKCr5zw86c0U3tKA1Av+qptrx55iSiFCcYSWro7Mh5JMRoDJdtJtbGkn695J Um4srWN1RkNZj65btP00UtCwqJyDOPBmo6nge2heu9gBsV5loWDoh6rMiLkUcXGj8yLneu ztRAyYGni3ouu1V6QFC0LavlGF9BQycOA5JC0FTbz31kvxgqfCAXzC11s6TfeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1749731932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=gPOgxeaSSQzcjaLPlw+bUOFKBcDCjFD0ifrT9AZnaoU=; b=vm88awR2LgKLGYs5xpynCFT5zPqKgtdwB/g8JAglHgaocfyjBYuHJTDKQ4EWwMwtxcn1sL pgyDa7BP47jzU75SLKjOtE//B7Z1TneEH1VbyD3iA85S2tycdWpjfGspzICt4g27JPgu5G gyLXWGIk18RQF90IjPNVOrcGBsi0RuPI1xpfHPt+FdKR+rKoOLs5p+edyZTq8P1tXWWxlB XFb9sIYveor/QpR2r3QDR0KlRweFyFFBxrMlRXU36WMBy4FbA6YggABRVICZnWtThQdZqe PdtZRgUL/DEzBCBvOAZ0nwhSBuzgQBorxlWBymt9IMwepZaOZv4UfG7CI2xMdg== ARC-Authentication-Results: i=1; rspamd-6c978647c4-z5lcw; auth=pass smtp.auth=dreamhost smtp.mailfrom=camalot@HIDDEN X-Sender-Id: dreamhost|x-authsender|camalot@HIDDEN X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|camalot@HIDDEN X-MailChannels-Auth-Id: dreamhost X-Abortive-Eyes: 18caa76e127eb38c_1749731932937_2950500607 X-MC-Loop-Signature: 1749731932937:2945137161 X-MC-Ingress-Time: 1749731932937 Received: from pdx1-sub0-mail-a310.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.122.29.246 (trex/7.0.3); Thu, 12 Jun 2025 12:38:52 +0000 Received: from imladris.picnicpark.org (104-50-141-154.lightspeed.sntcca.sbcglobal.net [104.50.141.154]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: camalot@HIDDEN) by pdx1-sub0-mail-a310.dreamhost.com (Postfix) with ESMTPSA id 4bJ2C03TwFzTD; Thu, 12 Jun 2025 05:38:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=picnicpark.org; s=dreamhost; t=1749731932; bh=gPOgxeaSSQzcjaLPlw+bUOFKBcDCjFD0ifrT9AZnaoU=; h=Date:Subject:To:Cc:From:Content-Type:Content-Transfer-Encoding; b=kLaE6ezTDPlnSR0/mlaVYxQKl5wO15eTFPxZ/NqwgKL5IMpMvTY2CuuAu9FlPaWfT 35yLFq05ChzHjfs1qp2Q/KaJQ5rEy0zxLsLbLd2xZlZ6y+9mvF6Kac23dGd1d2qaZN a/nfhsiqFkj8v4j8joLMNxlWVsdtoAhz7WJlSGBGjLvrOfsy4gJbqKvjaItRo4EIFz jcbjYiV26VQl8OQk7oqG2jGCPiJWscLRRHI15mfsijAzEreX0iYMlePqRq1rky7O40 ojMkTtotgkK+qFToyemmm3ZQQ/qEzdM2aL0k5oqbQ1WGIWV/5N112KaiskX2wVQrY2 ZNQPQqdi43gbw== Received: from [192.168.40.2] (ithil-10Gbps-1.picnicpark.org [192.168.40.2]) by imladris.picnicpark.org (Postfix) with ESMTPSA id 665B651A7BF8; Thu, 12 Jun 2025 05:38:51 -0700 (PDT) Message-ID: <8aadf7a8-e1ed-4a77-b3be-759e7a5b6e41@HIDDEN> Date: Thu, 12 Jun 2025 05:38:51 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird References: <df113cbb-427a-4508-91db-0b1adc4b6b19@HIDDEN> <86iknudgsv.fsf@HIDDEN> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@HIDDEN> <aabea7d5-598c-4899-b182-bebf05bdfff5@HIDDEN> <274d66da-d91d-821b-b1a5-d40263dd368e@HIDDEN> <86jz5igjoa.fsf@HIDDEN> <c6025ab2-179e-c848-6d6c-4ffc7f7faccb@HIDDEN> Content-Language: en-US From: Keith Amidon <camalot@HIDDEN> In-Reply-To: <c6025ab2-179e-c848-6d6c-4ffc7f7faccb@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 6/11/25 15:17, Jim Porter wrote: > I think we could change how we return the readable form of the > document. Currently, it returns the DOM node of the section we want to > render, but we could instead return a new document with the <title> > node plus the DOM node we want to render (ditto for <link> nodes, > since we use those for things like 'eww-next-url'). > > Since scoring the readability of the document requires iterating over > every DOM node, we could just collect the extra nodes we care about > (like <title>) while iterating. Then it'll be easy to include those > nodes in the readable form. > > Doing it this way should have the benefit that we don't start network > requests for images that won't be shown in the readable form of the page. I had originally thought of trying to do it more-or-less likes this but it seemed like it would be a quite large change to code I wasn't that familiar with so I went with something more contained to get things working. It might take me a while, but I can give this approach a second more sustained try and see how it looks. The points about image loading and <link> elements are good ones. Solving those within the existing approach where we save even more information from the original "non-readable" rending of the page and possibly conditionally modify the renderer to avoid loading images if we're just going to switch to the "readable" rending automatically makes a somewhat messy situation even messier.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.