From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 27 00:47:10 2025 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 ) id 1txf92-0005eR-Uy for submit@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 ) id 1txV83-0004ON-Fv for submit@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 ) id 1txV7f-0003IW-EZ for bug-gnu-emacs@gnu.org; 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 ) id 1txV7Y-0007x2-QC for bug-gnu-emacs@gnu.org; Wed, 26 Mar 2025 14:04:58 -0400 X-Sender-Id: dreamhost|x-authsender|camalot@picnicpark.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id E9FF9844550 for ; 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 ; 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@picnicpark.org X-Sender-Id: dreamhost|x-authsender|camalot@picnicpark.org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|camalot@picnicpark.org 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@picnicpark.org) by pdx1-sub0-mail-a295.dreamhost.com (Postfix) with ESMTPSA id 4ZNF7633TSz74 for ; 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 ; Wed, 26 Mar 2025 11:04:49 -0700 (PDT) Message-ID: Date: Wed, 26 Mar 2025 11:04:49 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: bug-gnu-emacs@gnu.org From: Keith Amidon Subject: eww-auto-rename-buffer 'title interaction with eww-readable-urls 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@picnicpark.org; 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-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 27 Mar 2025 00:47:07 -0400 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: -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 From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 27 04:22:20 2025 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 ) id 1txiVG-0006hk-Tx for submit@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 ) id 1txiVE-0006ge-3p for 77299@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 ) 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@gnu.org> From: Eli Zaretskii To: Keith Amidon In-Reply-To: (message from Keith Amidon on Wed, 26 Mar 2025 11:04:49 -0700) Subject: Re: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77299 Cc: 77299@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 (---) > Date: Wed, 26 Mar 2025 11:04:49 -0700 > From: Keith Amidon > > 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. From debbugs-submit-bounces@debbugs.gnu.org Tue May 13 10:27:17 2025 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 ) id 1uEqbE-00014R-GB for submit@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 ) id 1uEqbA-00014H-Vt for 77299@debbugs.gnu.org; Tue, 13 May 2025 10:27:14 -0400 X-Sender-Id: dreamhost|x-authsender|camalot@picnicpark.org 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@picnicpark.org X-Sender-Id: dreamhost|x-authsender|camalot@picnicpark.org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|camalot@picnicpark.org 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@picnicpark.org) 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@picnicpark.org> Date: Tue, 13 May 2025 07:27:09 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls To: Eli Zaretskii References: <86iknudgsv.fsf@gnu.org> Content-Language: en-US From: Keith Amidon In-Reply-To: <86iknudgsv.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77299 Cc: 77299@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: -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 >> >> 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
On 3/27/25 01:22, Eli Zaretskii wrote:
Date: Wed, 26 Mar 2025 11:04:49 -0700
From: Keith Amidon <camalot@picnicpark.org>

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-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 09 09:39:07 2025 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 ) id 1uOciP-0007Yn-Vr for submit@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 ) id 1uOciH-0007Xi-HY for 77299@debbugs.gnu.org; Mon, 09 Jun 2025 09:39:02 -0400 X-Sender-Id: dreamhost|x-authsender|camalot@picnicpark.org 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@picnicpark.org X-Sender-Id: dreamhost|x-authsender|camalot@picnicpark.org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|camalot@picnicpark.org 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@picnicpark.org) 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: Date: Mon, 9 Jun 2025 06:38:53 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls From: Keith Amidon To: Eli Zaretskii References: <86iknudgsv.fsf@gnu.org> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@picnicpark.org> Content-Language: en-US In-Reply-To: <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@picnicpark.org> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 77299 Cc: 77299@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: -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
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-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 11 07:40:48 2025 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 ) id 1uPJp0-0007ni-HJ for submit@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 ) id 1uPJou-0007mw-Vp for 77299@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 ) 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@gnu.org> From: Eli Zaretskii To: Keith Amidon In-Reply-To: (message from Keith Amidon on Mon, 9 Jun 2025 06:38:53 -0700) Subject: Re: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls References: <86iknudgsv.fsf@gnu.org> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@picnicpark.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77299 Cc: 77299@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 (---) > Date: Mon, 9 Jun 2025 06:38:53 -0700 > From: Keith Amidon > Cc: 77299@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. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 11 13:11:13 2025 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 ) id 1uPOyn-0000Mz-La for submit@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 ) id 1uPOym-0000Ma-2p for 77299@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@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@gmail.com> Date: Wed, 11 Jun 2025 10:11:03 -0700 MIME-Version: 1.0 Subject: Re: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls Content-Language: en-US To: Keith Amidon , Eli Zaretskii References: <86iknudgsv.fsf@gnu.org> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@picnicpark.org> From: Jim Porter In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77299 Cc: 77299@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: -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. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 11 15:17:24 2025 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 ) id 1uPQwu-0004KP-8t for submit@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 ) id 1uPQwr-0004K8-LL for 77299@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@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: Date: Wed, 11 Jun 2025 12:17:12 -0700 MIME-Version: 1.0 Subject: Re: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls Content-Language: en-US From: Jim Porter To: Keith Amidon , Eli Zaretskii References: <86iknudgsv.fsf@gnu.org> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@picnicpark.org> <274d66da-d91d-821b-b1a5-d40263dd368e@gmail.com> In-Reply-To: <274d66da-d91d-821b-b1a5-d40263dd368e@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77299 Cc: 77299@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: -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... From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 11 15:30:57 2025 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 ) id 1uPRA0-00051P-QR for submit@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 ) id 1uPR9x-00051B-Qm for 77299@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 ) 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@gnu.org> From: Eli Zaretskii To: Jim Porter In-Reply-To: <274d66da-d91d-821b-b1a5-d40263dd368e@gmail.com> (message from Jim Porter on Wed, 11 Jun 2025 10:11:03 -0700) Subject: Re: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls References: <86iknudgsv.fsf@gnu.org> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@picnicpark.org> <274d66da-d91d-821b-b1a5-d40263dd368e@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77299 Cc: 77299@debbugs.gnu.org, camalot@picnicpark.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 (---) > Date: Wed, 11 Jun 2025 10:11:03 -0700 > Cc: 77299@debbugs.gnu.org > From: Jim Porter > > 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 11 18:17:32 2025 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 ) id 1uPTlE-00026S-1E for submit@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 ) id 1uPTlB-00025q-Pk for 77299@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@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: Date: Wed, 11 Jun 2025 15:17:21 -0700 MIME-Version: 1.0 Subject: Re: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls Content-Language: en-US To: Eli Zaretskii References: <86iknudgsv.fsf@gnu.org> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@picnicpark.org> <274d66da-d91d-821b-b1a5-d40263dd368e@gmail.com> <86jz5igjoa.fsf@gnu.org> From: Jim Porter In-Reply-To: <86jz5igjoa.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77299 Cc: 77299@debbugs.gnu.org, camalot@picnicpark.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: -1.0 (-) On 6/11/2025 12:30 PM, Eli Zaretskii wrote: >> Date: Wed, 11 Jun 2025 10:11:03 -0700 >> Cc: 77299@debbugs.gnu.org >> From: Jim Porter >> >> 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 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 12 02:51:47 2025 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@debbugs.gnu.org>) id 1uPbmt-0007LL-0o for submit@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@gnu.org>) id 1uPbmq-0007L5-SY for 77299@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@gnu.org>) 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@gnu.org> From: Eli Zaretskii <eliz@gnu.org> To: Jim Porter <jporterbugs@gmail.com> In-Reply-To: <c6025ab2-179e-c848-6d6c-4ffc7f7faccb@gmail.com> (message from Jim Porter on Wed, 11 Jun 2025 15:17:21 -0700) Subject: Re: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls References: <df113cbb-427a-4508-91db-0b1adc4b6b19@picnicpark.org> <86iknudgsv.fsf@gnu.org> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@picnicpark.org> <aabea7d5-598c-4899-b182-bebf05bdfff5@picnicpark.org> <274d66da-d91d-821b-b1a5-d40263dd368e@gmail.com> <86jz5igjoa.fsf@gnu.org> <c6025ab2-179e-c848-6d6c-4ffc7f7faccb@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77299 Cc: 77299@debbugs.gnu.org, camalot@picnicpark.org X-BeenThere: debbugs-submit@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@debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit@debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Wed, 11 Jun 2025 15:17:21 -0700 > Cc: 77299@debbugs.gnu.org, camalot@picnicpark.org > From: Jim Porter <jporterbugs@gmail.com> > > On 6/11/2025 12:30 PM, Eli Zaretskii wrote: > >> Date: Wed, 11 Jun 2025 10:11:03 -0700 > >> Cc: 77299@debbugs.gnu.org > >> From: Jim Porter <jporterbugs@gmail.com> > >> > >> 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). From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 12 08:39:00 2025 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@debbugs.gnu.org>) id 1uPhCt-0002za-IR for submit@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@picnicpark.org>) id 1uPhCo-0002yz-Vo for 77299@debbugs.gnu.org; Thu, 12 Jun 2025 08:38:56 -0400 X-Sender-Id: dreamhost|x-authsender|camalot@picnicpark.org 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@picnicpark.org X-Sender-Id: dreamhost|x-authsender|camalot@picnicpark.org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|camalot@picnicpark.org 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@picnicpark.org) 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@picnicpark.org> Date: Thu, 12 Jun 2025 05:38:51 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls To: Jim Porter <jporterbugs@gmail.com>, Eli Zaretskii <eliz@gnu.org> References: <df113cbb-427a-4508-91db-0b1adc4b6b19@picnicpark.org> <86iknudgsv.fsf@gnu.org> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@picnicpark.org> <aabea7d5-598c-4899-b182-bebf05bdfff5@picnicpark.org> <274d66da-d91d-821b-b1a5-d40263dd368e@gmail.com> <86jz5igjoa.fsf@gnu.org> <c6025ab2-179e-c848-6d6c-4ffc7f7faccb@gmail.com> Content-Language: en-US From: Keith Amidon <camalot@picnicpark.org> In-Reply-To: <c6025ab2-179e-c848-6d6c-4ffc7f7faccb@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77299 Cc: 77299@debbugs.gnu.org X-BeenThere: debbugs-submit@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@debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit@debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces@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. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 12 11:54:15 2025 Received: (at 77299) by debbugs.gnu.org; 12 Jun 2025 15:54:15 +0000 Received: from localhost ([127.0.0.1]:59585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1uPkFq-0002ji-M4 for submit@debbugs.gnu.org; Thu, 12 Jun 2025 11:54:14 -0400 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:57448) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <jporterbugs@gmail.com>) id 1uPkFo-0002jH-1M for 77299@debbugs.gnu.org; Thu, 12 Jun 2025 11:54:12 -0400 Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-313910f392dso1136658a91.2 for <77299@debbugs.gnu.org>; Thu, 12 Jun 2025 08:54:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749743646; x=1750348446; 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=0e/lG1Nk13+n6ObrJOcNEeb4sbZP30PSSLuXnbikesM=; b=WwU4dMWUSJtzUSPYYJpe/hCKicQlHees7zD9RNeb6hhkPv77SBeUwm9K7S8obtalxx 6Uk2Ey223O4iIkc8nTZTAd5q0RSkAuirQEqhlkOEs6DGkt4VJGdm6YXpNZFn5qEEYHsZ zbETcZ3LWSrIrmmhmQTc8gz6tgOqmnmVegVwsrszbbhutgANtPvCun+Zf1qT7bJs3Cqq BIrla3UR+8Q32Uoqc1U5Vi4V7qt+MTYi4jmLwBAPy6CkU6ICYll056pFkLKLNF40ekg+ 06PKwuL1MIMEbI+f1Y5XdVALZ58So3xJlGSh/xtVZRlWSPc/by39Bjw+XsOK86GGMdlP +KoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749743646; x=1750348446; 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=0e/lG1Nk13+n6ObrJOcNEeb4sbZP30PSSLuXnbikesM=; b=HSS63Cv+AjITNC3/JUObUqyBIABlJaEefoz19jxEvIitoQ4HP9fuyIkY8S12f0pMXX INZmNNUidvBT8v9Tu/5kC3ic6/qRyTHzaOpslP1ug7uFfBMDEw6Ysc9MjLS9MdPGQqOn N7YKeklGXY94DxLYwgEt4xoiS+S77CINgc7rFyEsRLjh7JDXekfG+RPdKf+30Dj2Axta k2wm6kAg2LapTmFCow5JWMn4sXiqZqqtRNgJfNJJuMQc6cYUSptHH8+W8Ct3FmuZa3LA b30PmX0gZ6jYxwoa1eXWKyNFtHshsoRT0ee4Prk1pY3ZCUpkCEPq5nH8mWfiJSKVgruB Gu1g== X-Gm-Message-State: AOJu0Yy9bNdIns3eDJ5EJMQQ0NH25CC6xix90qCpMFcvPWvDQI1H+Nxe +cvJoC7nPacP27zTqZ4owhNM49Bzi5wRSh+q0akrSP4b7btOfIyH1biF X-Gm-Gg: ASbGncuXDFziLvT0jdA2GuA3sJQcqFeN0npLjCkbCgcc1I+RKTHmG5aTGEi7pKbQGCZ oa5GNn/yU//0BzaduxEvfqt3ik6RLr7hqp5EIlLz+EhDTPVJ6juvuBtJiAZbgiNRv/gdLftbHlf zIkAx3fxWiGIi93W07icIF35q/0wxYfvHdzanoBvKgz0EuIOYmtBgrM7qJXPMa/3CfG0SzvfeUQ TELJ9BaI8i+Xnz7jpb5ACgasg3JKKnz0vsFDq0QnRRkCSZ4RbWNFh6n7cgbWNFpY7EDnLjsmZR5 6EGsMFLVNYz3+dELmV4bR08yCusD60ZL8e5jPjz/A0B9mBz08fMpmFTbuKY+mGXaiDBt6P9qoVZ Dz4l1fgVBkiXj88btaB0rkOhhAR5iExH9GLHJDWEe6A== X-Google-Smtp-Source: AGHT+IEUVMlkdSGcJn+VNXiVor199cJRaEqzABTxDGaFR1zCGE+8UJqFimu+lVEGOj7N16t1TsicyQ== X-Received: by 2002:a17:90b:5283:b0:311:f99e:7f57 with SMTP id 98e67ed59e1d1-313d7ec2639mr418024a91.23.1749743645791; Thu, 12 Jun 2025 08:54: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-2364e61e63esm15812555ad.33.2025.06.12.08.54.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Jun 2025 08:54:05 -0700 (PDT) Message-ID: <832d1d64-0751-4928-3a21-4f20f6bb5664@gmail.com> Date: Thu, 12 Jun 2025 08:54:06 -0700 MIME-Version: 1.0 Subject: Re: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls Content-Language: en-US To: Keith Amidon <camalot@picnicpark.org>, Eli Zaretskii <eliz@gnu.org> References: <df113cbb-427a-4508-91db-0b1adc4b6b19@picnicpark.org> <86iknudgsv.fsf@gnu.org> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@picnicpark.org> <aabea7d5-598c-4899-b182-bebf05bdfff5@picnicpark.org> <274d66da-d91d-821b-b1a5-d40263dd368e@gmail.com> <86jz5igjoa.fsf@gnu.org> <c6025ab2-179e-c848-6d6c-4ffc7f7faccb@gmail.com> <8aadf7a8-e1ed-4a77-b3be-759e7a5b6e41@picnicpark.org> From: Jim Porter <jporterbugs@gmail.com> In-Reply-To: <8aadf7a8-e1ed-4a77-b3be-759e7a5b6e41@picnicpark.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77299 Cc: 77299@debbugs.gnu.org X-BeenThere: debbugs-submit@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@debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit@debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 6/12/2025 5:38 AM, Keith Amidon wrote: > 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. I wrote the 'eww-readable-urls' feature (though not the original readable mode code), so I have a fairly good idea of how things work in this area. If you're interested in working on a patch, I'm happy to provide some guidance, or if you just want it to work right, I could write the patch. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 12 12:47:16 2025 Received: (at 77299) by debbugs.gnu.org; 12 Jun 2025 16:47:16 +0000 Received: from localhost ([127.0.0.1]:59838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1uPl59-0006Qv-Oz for submit@debbugs.gnu.org; Thu, 12 Jun 2025 12:47:16 -0400 Received: from olivedrab.birch.relay.mailchannels.net ([23.83.209.135]:25827) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <camalot@picnicpark.org>) id 1uPl56-0006QZ-LW for 77299@debbugs.gnu.org; Thu, 12 Jun 2025 12:47:13 -0400 X-Sender-Id: dreamhost|x-authsender|camalot@picnicpark.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1B58F1C1176; Thu, 12 Jun 2025 16:47:11 +0000 (UTC) Received: from pdx1-sub0-mail-a284.dreamhost.com (100-122-29-47.trex-nlb.outbound.svc.cluster.local [100.122.29.47]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 584E61C4096; Thu, 12 Jun 2025 16:47:09 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1749746829; a=rsa-sha256; cv=none; b=NG7itFvZB+APEoR368ta1zXMzmzWuNtZTfJroadLg9JK3v82J4e8/EH09Uo/d07OH3gg5K lQxtqOKI+gdqzAuvZWt7I5l5I1dAjklILb593oUC5ravP9cMQYVaCIz1uEJ2/5rIZpB5tP WU19j+U3LqrdHgLQwUyU14EWXP98xAjM+lvMBoGXNBCO5YRloShpYlK+A0DIlca8Mbvze6 E3fuGCXW5zV74xIsvN+QQhypLm+V3puy0qD+RJLcl9LJSrA0nfCf1aS/KKAkecs/iinSMT pLDIMfj8vZ/zA9CpkOb5c8WqNi5PjdK1lV1jY23lnQRnMPMDAXjrddmP5WNKyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1749746829; 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=LzYbSifOhMR/1vaVDNTmMQUcUGxiYmGuhGmxGnoWaTY=; b=CwFW55JbN/AkhQkxE3ng0+cO5FcSeSaR7paup3ZEzUpBirj3RMJKOmHuz8eDAW/5B7ScYw vhPTwrcaE4frZ47IE3v2JGQRtCpq+dYmNFeAaTyhiLqftBPXrWomX2a2gALZU4c7gyvnve Wq4VDIFY6pM8Mf3jBBR2F53gak0vCYm5en0btO7icHXtu+WEr7Tk43ufb4vrY1kmsFKqrl v0B/vlU7ZJ7OYk3Wm1HrxSNGwiclPVQu7VYyiv/pMeMuOwnh6BkavFtSh+r4SF/zvJn54z UGNQw82kt0ZThbL46gNrEwu178jwW+W3dA7hX+aM0sp5QnPF9bwimphWrBcoMQ== ARC-Authentication-Results: i=1; rspamd-6c978647c4-hkzkr; auth=pass smtp.auth=dreamhost smtp.mailfrom=camalot@picnicpark.org X-Sender-Id: dreamhost|x-authsender|camalot@picnicpark.org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|camalot@picnicpark.org X-MailChannels-Auth-Id: dreamhost X-Grain-Squirrel: 725a33e90de6895f_1749746829628_1177513158 X-MC-Loop-Signature: 1749746829628:1437510026 X-MC-Ingress-Time: 1749746829628 Received: from pdx1-sub0-mail-a284.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.122.29.47 (trex/7.0.3); Thu, 12 Jun 2025 16:47:09 +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@picnicpark.org) by pdx1-sub0-mail-a284.dreamhost.com (Postfix) with ESMTPSA id 4bJ7jT17LJzDh; Thu, 12 Jun 2025 09:47:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=picnicpark.org; s=dreamhost; t=1749746829; bh=LzYbSifOhMR/1vaVDNTmMQUcUGxiYmGuhGmxGnoWaTY=; h=Date:Subject:To:Cc:From:Content-Type:Content-Transfer-Encoding; b=K7xqi0B19WLGlMSJJe00JPL249X82xknPR+0d8cEEwCzAGwDvTVjea+GGbOkBS5bP 5m+E6LlCTNTH37o0hJT8EhDRlCqw2uVpJFYW2daE2Jx+KwOK6OsbBfTc+ANbtVatOC JXDwpe/bvN7E+4TUy0w6bawRJNft+Be9jibDDJw7Bg6OnL1GDPo3FimyRGHOS5YE8p UeUn8bEScVDkwYP++aU5VGsdfFKE8eRiJLyODISLdgg/oXVxg2BqPGYXefQRmYrg6U Hk9fruxi51AAFd7rhqlKkB+wlIO1upX757by1gtBKOTYHzZhDOIwUDvVpGefneOi00 IhCj8UHeh6GNA== Received: from [192.168.40.2] (ithil-10Gbps-1.picnicpark.org [192.168.40.2]) by imladris.picnicpark.org (Postfix) with ESMTPSA id 2CECD51A7BE0; Thu, 12 Jun 2025 09:47:08 -0700 (PDT) Message-ID: <f54e5436-9aeb-4141-8b70-94a9a880dfd5@picnicpark.org> Date: Thu, 12 Jun 2025 09:47:08 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls To: Jim Porter <jporterbugs@gmail.com>, Eli Zaretskii <eliz@gnu.org> References: <df113cbb-427a-4508-91db-0b1adc4b6b19@picnicpark.org> <86iknudgsv.fsf@gnu.org> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@picnicpark.org> <aabea7d5-598c-4899-b182-bebf05bdfff5@picnicpark.org> <274d66da-d91d-821b-b1a5-d40263dd368e@gmail.com> <86jz5igjoa.fsf@gnu.org> <c6025ab2-179e-c848-6d6c-4ffc7f7faccb@gmail.com> <8aadf7a8-e1ed-4a77-b3be-759e7a5b6e41@picnicpark.org> <832d1d64-0751-4928-3a21-4f20f6bb5664@gmail.com> Content-Language: en-US From: Keith Amidon <camalot@picnicpark.org> In-Reply-To: <832d1d64-0751-4928-3a21-4f20f6bb5664@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77299 Cc: 77299@debbugs.gnu.org X-BeenThere: debbugs-submit@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@debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit@debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 6/12/25 08:54, Jim Porter wrote: > I wrote the 'eww-readable-urls' feature (though not the original > readable mode code), so I have a fairly good idea of how things work > in this area. If you're interested in working on a patch, I'm happy to > provide some guidance, or if you just want it to work right, I could > write the patch. If you have the time and interest to write the patch based on your superior knowledge of the code Jim that would be great. I'm motivated to have this work because I find using eww-readable-urls to make eww much more useful for my day-to-day usage (thanks for contributing it!) but I also heavily use org links which need the document title to work well. My current personal workaround is working but I'd like to get a solution upstream and stop carrying it. If you come up with something you'd like help testing I'd be happy to help with that. If you can't get to it for a while I'll make time to poke at it. From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 17 12:33:12 2025 Received: (at 77299) by debbugs.gnu.org; 17 Jun 2025 16:33:12 +0000 Received: from localhost ([127.0.0.1]:33250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1uRZFH-0005IO-IQ for submit@debbugs.gnu.org; Tue, 17 Jun 2025 12:33:12 -0400 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:49323) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <jporterbugs@gmail.com>) id 1uRZFE-0005Hk-8u for 77299@debbugs.gnu.org; Tue, 17 Jun 2025 12:33:09 -0400 Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-b0db0b6a677so5500608a12.2 for <77299@debbugs.gnu.org>; Tue, 17 Jun 2025 09:33:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750177982; x=1750782782; darn=debbugs.gnu.org; h=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=b54XoIvEXousvBFGuHkkLNaZ+VEAzzEcethFQmBF9sg=; b=XrTI/ffVDW1UUO7lpaqCn68I/JmzaFFCm+55YiRcD7GJczBx9twK4D6u0yDjfO1893 +uU/RBKYkHPaHVpU5k9O6ljXFgMuX6I7pkMOFbboJAsO7OIhOM3Vkme4gX3gF8iTtagt YeMwWCkFCqWvvle2uY7zlYYkK23HWXoEZrN2VtXt3TDroPf4LiEhh5lqmuQvIZH4HQz4 TEKVHZUu9oqd6WTHHLiDlLAQ3h0cLXCM6g6U9v9s40w2qoQf8U4C4K8PkkkqREIyq4UV PE/YokDXkH35rI+VkKFdX89F2E2gvKgZk8UhvFpaki1hCrBZfkWUz78yXWIVNGR6yJck S1oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750177982; x=1750782782; h=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=b54XoIvEXousvBFGuHkkLNaZ+VEAzzEcethFQmBF9sg=; b=pD7OPET5telyKvUl5PdpV3T5c+SZPiYLHpB9ZXB9XESFikjl+z1mBNHKQ5xjyMWJkw b6pmqCLJdqRHZIZNRXwzpisR6SuZl2ggCbDcCouM5oCMSmoZGpK3kXcmI3SUZjgdHfWu oeUdp/2eNRYPz1VNDBxZT68lZCRk/QayVg+B10rlvBp1EKlCHvC+gnMI24qZQALp5zx4 NtwEO8K6ij8h5HyXpPhJyaYho3LfQ/YNKbn66GLPxz/BJBfZpn2aHvXlQcie5AcyBwjZ 1VspydyvrubKp2jvHlIq8jUYtXVdy64Mbhdn1UcF+C5Pz7SpzLffJrMsvIE0sJSHmpBh 4PPA== X-Gm-Message-State: AOJu0YwHVxNhaAqrO7h25kZYazi8X1yrT74BvdRZd7JBrBBKNRp0I1cs 3LlcL5gKDdq6gSVwwzJAE3NJGTtg0plsvkbVHoabbQgSGuRvenV4Wm31 X-Gm-Gg: ASbGncvXLJgEF373eEFeqYfi10l1FzB1NevHQken+TCA2NR7xBMFBBHfwWG1iUz4ASo K7gRQssGZVUjk1kWBmvHCneY5os+l6Hg+pc6CdR1vuSuGy+tVev+W1fnvhfz4MNQb26qaLkjf/j M3Beeb3WxGPANZNOKpXPgGQOoyuQlOaB4MROlfyrOZiwD1LnwKRA91XWklH2PaiCVL06+OC63hc m/3J2QnFEDZCwM4fEaKa5oVy98f+taWYPckXE7v4VlHHMm5LCAHX/R/fNB0s5baodAiTE/JGmF1 pHA2sRmt3RH7OTfhOps53DyxdWpqgLrrUxEnutsivKd/Wb+Es3xlx4u+TKw48PfFxWoSY/Mimbv 2Z06dnazKS+0H932pt7q753JbmsrxD1YFlES8MdQYfQ== X-Google-Smtp-Source: AGHT+IERICvDA32ajZnOmSjJIoB3DHzzoXIt80Iz8DeCJ33oZ+V9XzIa/koB6m2Ufi/1PLNb9qxkrQ== X-Received: by 2002:a05:6a21:a343:b0:21f:4631:811c with SMTP id adf61e73a8af0-21fbd556858mr19424288637.19.1750177981818; Tue, 17 Jun 2025 09:33:01 -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 41be03b00d2f7-b2fe1691e1fsm9163522a12.70.2025.06.17.09.33.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Jun 2025 09:33:00 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------vmhHtARq3KrsqrjMClq00inv" Message-ID: <4f1f8527-f46b-af4b-3ff3-c7a2e2db5710@gmail.com> Date: Tue, 17 Jun 2025 09:33:01 -0700 MIME-Version: 1.0 Subject: Re: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls Content-Language: en-US To: Keith Amidon <camalot@picnicpark.org>, Eli Zaretskii <eliz@gnu.org> References: <df113cbb-427a-4508-91db-0b1adc4b6b19@picnicpark.org> <86iknudgsv.fsf@gnu.org> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@picnicpark.org> <aabea7d5-598c-4899-b182-bebf05bdfff5@picnicpark.org> <274d66da-d91d-821b-b1a5-d40263dd368e@gmail.com> <86jz5igjoa.fsf@gnu.org> <c6025ab2-179e-c848-6d6c-4ffc7f7faccb@gmail.com> <8aadf7a8-e1ed-4a77-b3be-759e7a5b6e41@picnicpark.org> <832d1d64-0751-4928-3a21-4f20f6bb5664@gmail.com> <f54e5436-9aeb-4141-8b70-94a9a880dfd5@picnicpark.org> From: Jim Porter <jporterbugs@gmail.com> In-Reply-To: <f54e5436-9aeb-4141-8b70-94a9a880dfd5@picnicpark.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77299 Cc: 77299@debbugs.gnu.org X-BeenThere: debbugs-submit@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@debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit@debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> X-Spam-Score: -1.0 (-) This is a multi-part message in MIME format. --------------vmhHtARq3KrsqrjMClq00inv Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/12/2025 9:47 AM, Keith Amidon wrote: > If you have the time and interest to write the patch based on your > superior knowledge of the code Jim that would be great. I'm motivated to > have this work because I find using eww-readable-urls to make eww much > more useful for my day-to-day usage (thanks for contributing it!) but I > also heavily use org links which need the document title to work well. It took a bit longer than I thought to do this, but after a few failed attempts, I think this patch is pretty close (aside from the couple of small FIXMEs in there). As a bonus, this implementation is about 4x faster than the old one, since it does all the work in a single pass over the DOM. For large pages, simply computing the readable DOM can take a while; doing it for the Wikipedia page for "Sun" takes a full second. Here are the stats from calling the relevant code before and after (sum of 20 iterations): BEFORE: 20.635833s (15.510534s in 270 GCs) AFTER: 4.320405s (3.041672s in 55 GCs) We could probably make this even faster by doing something more efficient than '(length (split-string FOO))', but one thing at a time. That's how the code was before, so I didn't change that bit. > My current personal workaround is working but I'd like to get a solution > upstream and stop carrying it. If you come up with something you'd like > help testing I'd be happy to help with that. If you can't get to it for > a while I'll make time to poke at it. If the attached changed is too risky for the release branch, I'm open to the idea of doing something like your workaround there, maybe only when 'eww-auto-rename-buffer' is set to 'title'. That way, people without that setting don't suffer any performance penalty. --------------vmhHtARq3KrsqrjMClq00inv Content-Type: text/plain; charset=UTF-8; name="0001-When-making-a-readable-page-in-EWW-include-the-title.patch" Content-Disposition: attachment; filename*0="0001-When-making-a-readable-page-in-EWW-include-the-title.pa"; filename*1="tch" Content-Transfer-Encoding: base64 RnJvbSA1ODY2NDVkMjdhYzNhMWJjMmI1ODgyNzQzZjliYTNmY2VhNGRlM2NiIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBKaW0gUG9ydGVyIDxqcG9ydGVyYnVnc0BnbWFpbC5j b20+CkRhdGU6IFR1ZSwgMTcgSnVuIDIwMjUgMDk6MTE6NTUgLTA3MDAKU3ViamVjdDogW1BB VENIXSBXaGVuIG1ha2luZyBhIHJlYWRhYmxlIHBhZ2UgaW4gRVdXLCBpbmNsdWR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KSkKKyAgICAodW5sZXNzIG5vc2NvcmUKKyAgICAgIChj b25kCisgICAgICAgKChzdHJpbmdwIG5vZGUpCisgICAgICAgIChzZXRxIHNjb3JlIChsZW5n dGggKHNwbGl0LXN0cmluZyBub2RlKSkKKyAgICAgICAgICAgICAgbm9zY29yZSB0KSkKKyAg ICAgICAoKG1lbXEgKGRvbS10YWcgbm9kZSkgJyhzY3JpcHQgaGVhZCBjb21tZW50KSkKKyAg ICAgICAgKHNldHEgc2NvcmUgLTIKKyAgICAgICAgICAgICAgbm9zY29yZSB0KSkKKyAgICAg ICAoKGVxIChkb20tdGFnIG5vZGUpICdtZXRhKQorICAgICAgICAoc2V0cSBzY29yZSAtMQor ICAgICAgICAgICAgICBub3Njb3JlIHQpKQorICAgICAgICgoZXEgKGRvbS10YWcgbm9kZSkg J2ltZykKKyAgICAgICAgKHNldHEgc2NvcmUgMgorICAgICAgICAgICAgICBub3Njb3JlIHQp KQorICAgICAgICgoZXEgKGRvbS10YWcgbm9kZSkgJ2EpCisgICAgICAgIChzZXRxIHNjb3Jl ICgtIChsZW5ndGggKHNwbGl0LXN0cmluZyAoZG9tLXRleHQgbm9kZSkpKSkKKyAgICAgICAg ICAgICAgbm9zY29yZSB0KSkKKyAgICAgICAodAorICAgICAgICAoc2V0cSBzY29yZSAtMSkp KSkKKyAgICAod2hlbiAoY29uc3Agbm9kZSkKICAgICAgIChkb2xpc3QgKGVsZW0gKGRvbS1j aGlsZHJlbiBub2RlKSkKLQkoY29uZAotICAgICAgICAgKChzdHJpbmdwIGVsZW0pCi0gICAg ICAgICAgKHNldHEgc2NvcmUgKCsgc2NvcmUgKGxlbmd0aCAoc3BsaXQtc3RyaW5nIGVsZW0p KSkpKQotICAgICAgICAgKChjb25zcCBlbGVtKQotCSAgKHNldHEgc2NvcmUgKCsgc2NvcmUK LQkJCSAob3IgKGNkciAoYXNzb2MgOmV3dy1yZWFkYWJpbGl0eS1zY29yZSAoY2RyIGVsZW0p KSkKLQkJCSAgICA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pKQor ICAgICAgIChkb20tc2V0LWF0dHJpYnV0ZSBub2RlIDpld3ctcmVhZGFiaWxpdHktc2NvcmUg c2NvcmUpKSkpKQorCiAoZGVmdW4gZXd3LWhpZ2hlc3QtcmVhZGFiaWxpdHkgKG5vZGUpCisg IChkZWNsYXJlIChvYnNvbGV0ZSAnZXd3LXJlYWRhYmxlLWRvbSAiMzEuMSIpKQogICAobGV0 ICgocmVzdWx0IG5vZGUpCiAJaGlnaGVzdCkKICAgICAoZG9saXN0IChlbGVtIChkb20tbm9u LXRleHQtY2hpbGRyZW4gbm9kZSkpCi0tIAoyLjI1LjEKCg== --------------vmhHtARq3KrsqrjMClq00inv-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 17 19:54:23 2025 Received: (at 77299) by debbugs.gnu.org; 17 Jun 2025 23:54:23 +0000 Received: from localhost ([127.0.0.1]:38220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1uRg8E-0007nR-Ny for submit@debbugs.gnu.org; Tue, 17 Jun 2025 19:54:23 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:45270) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <jporterbugs@gmail.com>) id 1uRg8B-0007mp-8e for 77299@debbugs.gnu.org; Tue, 17 Jun 2025 19:54:20 -0400 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-7390d21bb1cso4893850b3a.2 for <77299@debbugs.gnu.org>; Tue, 17 Jun 2025 16:54:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750204453; x=1750809253; 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=mtsas3SHbvdWUSQMhAT8lhYRGF2YQBF8v4jXl51SRWs=; b=UyAdnwAOA/xuD2lbOH/pRvplF2Afrpdgb7Rom1snljzTXkIsYLpWxEyPL8C6+U1YGV uLA1kbwlbrOkukacqX2bWwvvLFsmes/rN+Znq8PU8Cn384KFhypxnqLzyvzvGqiVGCav M5vVmOLg/BRTA2sCK25NUGM0Npt64ewmI7DO6GZz7NGfdv4QHvmaAmZLNxhpiTcmN0QL /t/LddIY+3GGggyDPTUZDuuCcgg03J5IZ7EYJO4AV9UOtLYUHKWsx8aQ3iUvb5ItFLkY O45b5YxO2XJ66oZ38Wu67FVxgbrbmD67Q91jYI2VpgULvarOhx+0qrg6FX7HTHe99xVR acrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750204453; x=1750809253; 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=mtsas3SHbvdWUSQMhAT8lhYRGF2YQBF8v4jXl51SRWs=; b=C52EaOLgNV9+jiyz+prUdHtLhkE0XMZB/1Igzm9Iy3l63MeQ+fPam4wzbH8d4drhO3 M4X2mjWzOSO9UhJ6xFmSazqNg8cOB+LrHA4VfFrs0cTvx7dwd/vhS1p6XSoD6rtgxLV5 XGCcxsVFS1I7BM1rFLHfJ0eDJBNw3UmJxlsAQ7RM7AtQ4WAcXWr4CTD3WY7iuMq15yg8 IKO0g1a59L0+DMY7eynzZZky8K+KjI/0nJpC3S3m9shSiBYatp6tN5Az4hM+UQxRZVii KQoXTlgbibShcDE6/z8/L1TE9sbFPsNMDVfx1CHT268JJqGD89429Rmtyap8A4UY2QgP mziA== X-Gm-Message-State: AOJu0YwrXyRJEOrrUhuf8fT1sIbI28Lkgu6D9lcrcXjYP7YA8O9+jsJf jQ6W+GiiZLYYo/DXwdbRdiyun6b4B7hgHz9Tkd+3dYPtFGfMGvTpEoiR X-Gm-Gg: ASbGncuoGEV7hbNCwH15/g4+UPgEyev1fR5J3CgXgAtBBzDrJFy/BJ3AbL+IPNIm25i 9b6KRIDs8/c9fusp6HSF4jmb6JlQh4VlXlvsP0wzpKMkV3aAfooI/7srQP6WcVeZNH32XUycv7l IqiYgU/D1QBTmsXIeAD7p10CvAv1wKJi98IT5XEn3mHZLwJttXjpblfB+/Dn5y4/4YiMFl5fg68 x2WiT95HBwDIcs05SNdBluEbQC1+I4s5+8YAKrom9ec+/xBD1HLQPRiZHOo7zh1sCJqu0xEdIKQ HJ5shxLowjvenf0w2UkGvxDcWowUx6e3ySmyPTvGmP08DQBShsRvk0PyfukwsdttodqM5t2Ff64 TigcNOmWq7Ij5IJvO3UB/MJJyBpOqpCrLdpfrXvVQpQ== X-Google-Smtp-Source: AGHT+IHnObRGtLRMdYE81s7Y8JXNK/FnoKskTzu8VNzoCE00ViRxu5XOfVXUtkuq6H4G2+drSr2Tww== X-Received: by 2002:a05:6a00:21c3:b0:742:a334:466a with SMTP id d2e1a72fcca58-7489cf97ddbmr22193369b3a.12.1750204453137; Tue, 17 Jun 2025 16:54:13 -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 d2e1a72fcca58-748900d255fsm9883371b3a.172.2025.06.17.16.54.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Jun 2025 16:54:12 -0700 (PDT) Message-ID: <25163349-d461-cf84-ebdb-c2e9e1ecaa28@gmail.com> Date: Tue, 17 Jun 2025 16:54:12 -0700 MIME-Version: 1.0 Subject: Re: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls Content-Language: en-US From: Jim Porter <jporterbugs@gmail.com> To: Keith Amidon <camalot@picnicpark.org>, Eli Zaretskii <eliz@gnu.org> References: <df113cbb-427a-4508-91db-0b1adc4b6b19@picnicpark.org> <86iknudgsv.fsf@gnu.org> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@picnicpark.org> <aabea7d5-598c-4899-b182-bebf05bdfff5@picnicpark.org> <274d66da-d91d-821b-b1a5-d40263dd368e@gmail.com> <86jz5igjoa.fsf@gnu.org> <c6025ab2-179e-c848-6d6c-4ffc7f7faccb@gmail.com> <8aadf7a8-e1ed-4a77-b3be-759e7a5b6e41@picnicpark.org> <832d1d64-0751-4928-3a21-4f20f6bb5664@gmail.com> <f54e5436-9aeb-4141-8b70-94a9a880dfd5@picnicpark.org> <4f1f8527-f46b-af4b-3ff3-c7a2e2db5710@gmail.com> In-Reply-To: <4f1f8527-f46b-af4b-3ff3-c7a2e2db5710@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77299 Cc: 77299@debbugs.gnu.org X-BeenThere: debbugs-submit@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@debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit@debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 6/17/2025 9:33 AM, Jim Porter wrote: > As a bonus, this implementation is about 4x faster than the old one, > since it does all the work in a single pass over the DOM. For large > pages, simply computing the readable DOM can take a while; doing it for > the Wikipedia page for "Sun" takes a full second. Here are the stats > from calling the relevant code before and after (sum of 20 iterations): > >   BEFORE:  20.635833s (15.510534s in 270 GCs) >   AFTER:    4.320405s (3.041672s in 55 GCs) > > We could probably make this even faster by doing something more > efficient than '(length (split-string FOO))', but one thing at a time. > That's how the code was before, so I didn't change that bit. I poked around at this and managed to get it down to 0.54s (still the sum of 20 runs), so it's now 38x faster. I'll work on cleaning this up into a real patch and submit it as a separate bug, since that's a pretty significant improvement. From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 17 23:00:22 2025 Received: (at 77299) by debbugs.gnu.org; 18 Jun 2025 03:00:23 +0000 Received: from localhost ([127.0.0.1]:40756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1uRj2C-0002yN-6Z for submit@debbugs.gnu.org; Tue, 17 Jun 2025 23:00:22 -0400 Received: from dog.ash.relay.mailchannels.net ([23.83.222.48]:49337) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <camalot@picnicpark.org>) id 1uRj25-0002sy-VJ for 77299@debbugs.gnu.org; Tue, 17 Jun 2025 23:00:17 -0400 X-Sender-Id: dreamhost|x-authsender|camalot@picnicpark.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id C4F36903601; Wed, 18 Jun 2025 03:00:11 +0000 (UTC) Received: from pdx1-sub0-mail-a296.dreamhost.com (100-121-35-245.trex-nlb.outbound.svc.cluster.local [100.121.35.245]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 5A4249035DE; Wed, 18 Jun 2025 03:00:11 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1750215611; a=rsa-sha256; cv=none; b=0Ltfc6hUb726eB+vjO38TSUX+mkBUglOya6gNkKtXcwmvrNLaAPEUQ3TduuL+nSLPxhGNx Xu3gei2Zb75neOOOMzyhsuCBD6FUUqHp7jmJ58LSR0EMbqlJlq8t56dxdOLrmG6XzCCrAQ Cpi0+5ypS+vupCP4gqKzZb4XRkPoAluzYEJmdrWMufxSQegUQHkYfMF0M99dAJXqPXPS0+ krVxEZm5kTVlFIm9/pV1yY54CTx5lCKw5yr6W7DmqHaLWfSWQNqtAPJvaJeCTrHiRhK1G9 HT5TxhQM+QZCzL4qGvbERHtwJPwznPSY7A8cVQDJVq0hjiq4j5KTa/k35/DCww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1750215611; 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=srWnqlNYoJmeKHAOtMd1ERBY5SLOUy6tNahFzOmb2cQ=; b=Bp2W3KTB3jz8rfT53N5zTxaGJ4Z0O4/ge0ysjF0F2iaQIpXVVvMV/KsbUI1i6IeSyCfabf K8rPL8INWE6Y2JS7Yvil2bChvGmig3s5JqyBiPCiLytQ81E4A+MKAwfZkihatoQLjOoid9 DGPx+LiGtyzYCzMPvkju9P+Mg412Z++hwsqsPQSzyx1M690lwYXBDgKps8Ume0luENqmwr 2nODG2mMHBQKhuC5lTbDZZZ/KVYBXcFLAN/tGYG8ekX7QmHleizmqHg+0JLtvtW1qWi6iG dKWvYQ9y+EHfnV40oWEmLIouRJPoYebgzIYPHGY8+gMlk88saAbfDMJp6EBkcg== ARC-Authentication-Results: i=1; rspamd-6c978647c4-lnbx4; auth=pass smtp.auth=dreamhost smtp.mailfrom=camalot@picnicpark.org X-Sender-Id: dreamhost|x-authsender|camalot@picnicpark.org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|camalot@picnicpark.org X-MailChannels-Auth-Id: dreamhost X-Shoe-Absorbed: 20dc953529c4ce29_1750215611600_2856700314 X-MC-Loop-Signature: 1750215611600:2372392487 X-MC-Ingress-Time: 1750215611600 Received: from pdx1-sub0-mail-a296.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.121.35.245 (trex/7.0.3); Wed, 18 Jun 2025 03:00:11 +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@picnicpark.org) by pdx1-sub0-mail-a296.dreamhost.com (Postfix) with ESMTPSA id 4bMT4W1NK6zDW; Tue, 17 Jun 2025 20:00:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=picnicpark.org; s=dreamhost; t=1750215611; bh=srWnqlNYoJmeKHAOtMd1ERBY5SLOUy6tNahFzOmb2cQ=; h=Date:Subject:To:Cc:From:Content-Type:Content-Transfer-Encoding; b=FaR6Q1IQW1yRWts1gKe2N8Xs9VBrtj2ioDQ4OjwFwJ4Z/A39wc/OHwhCpq9kWuKDr fEyWElWYNOR2rzxbq4T3xv8boiqkz31QNGfG2eqmLNHhc+aijrezIIQsFiE/wAhLNU 0xdozcuPxs0ST5N6Diu8Px/ou1YUxNATx4+d25BQQWC1kXxlM8QqdJ/I0xVpShunAu rZkgYUxCttpHlsSukUZuOr/0uBCVEhWg5VxHx0Yd8Y6wSk5hVMrv9mj0um2mfrCYKY zwXU+iL9vsrGoQN4yA837W3HAvJrO78o0sBMt6q9YOcExyyX1hd66bk0rns9y48mDx HGcjwMVM+6yJQ== Received: from [192.168.40.2] (ithil-10Gbps-1.picnicpark.org [192.168.40.2]) by imladris.picnicpark.org (Postfix) with ESMTPSA id 47C5E51A7BF9; Tue, 17 Jun 2025 20:00:10 -0700 (PDT) Message-ID: <b97708bb-d86b-4d6c-a893-69c3e2ba4874@picnicpark.org> Date: Tue, 17 Jun 2025 20:00:10 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls To: Jim Porter <jporterbugs@gmail.com>, Eli Zaretskii <eliz@gnu.org> References: <df113cbb-427a-4508-91db-0b1adc4b6b19@picnicpark.org> <86iknudgsv.fsf@gnu.org> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@picnicpark.org> <aabea7d5-598c-4899-b182-bebf05bdfff5@picnicpark.org> <274d66da-d91d-821b-b1a5-d40263dd368e@gmail.com> <86jz5igjoa.fsf@gnu.org> <c6025ab2-179e-c848-6d6c-4ffc7f7faccb@gmail.com> <8aadf7a8-e1ed-4a77-b3be-759e7a5b6e41@picnicpark.org> <832d1d64-0751-4928-3a21-4f20f6bb5664@gmail.com> <f54e5436-9aeb-4141-8b70-94a9a880dfd5@picnicpark.org> <4f1f8527-f46b-af4b-3ff3-c7a2e2db5710@gmail.com> <25163349-d461-cf84-ebdb-c2e9e1ecaa28@gmail.com> Content-Language: en-US From: Keith Amidon <camalot@picnicpark.org> In-Reply-To: <25163349-d461-cf84-ebdb-c2e9e1ecaa28@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77299 Cc: 77299@debbugs.gnu.org X-BeenThere: debbugs-submit@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@debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit@debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> X-Spam-Score: -1.0 (-) Thanks for all this work Jim, both the header preserving changes and the optimization. I haven't gotten a chance to study the diff you provide earlier in detail or try it out yet, but I did read it carefully enough to get a good sense of how it is supposed to work and compares with the old code. It looks really nice. I'll try to make time to try it out ASAP. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 18 07:31:21 2025 Received: (at 77299) by debbugs.gnu.org; 18 Jun 2025 11:31:21 +0000 Received: from localhost ([127.0.0.1]:47765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1uRr0i-0003mv-Ce for submit@debbugs.gnu.org; Wed, 18 Jun 2025 07:31:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38062) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@gnu.org>) id 1uRr0g-0003al-V9 for 77299@debbugs.gnu.org; Wed, 18 Jun 2025 07:31:19 -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@gnu.org>) id 1uRr0b-00037E-AK; Wed, 18 Jun 2025 07:31:13 -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=e8e4TPyL5ri+s1w9qEsa3Yh6sLOB7/AS13Ot912/POo=; b=TrJzHu3BQ8PM tl5l5gYw+5gai018Et4Wsevz5lZpUEvxexeBLLIc/1E+1ek9P9QrZ4j6qQK6YhXj4VTGju3T1Uvch p+aB0zI9Glxf+HI/MN4av3OdjHWi+B7f7KLYeKJ9HY5lIRwe5NiKlCDFkAmgDWjCPBWeZ+bjw13yF eNZte0xpTD5wjS/rPF8eXHECqGRaBvePuRBEFWcSFZoCmlRTU01eS4dDPpMx0sU0QBI5RuFR9csoF /vZJgSXobM26xJwwAt318CLgFdZszv8SizaiTv7bxgNKX6yJ4zHeS14I1LxQiCaFPFgpIwwA12wkU OrS02XhpCr5yvPuWjSpYIQ==; Date: Wed, 18 Jun 2025 14:31:10 +0300 Message-Id: <86msa5mgld.fsf@gnu.org> From: Eli Zaretskii <eliz@gnu.org> To: Jim Porter <jporterbugs@gmail.com> In-Reply-To: <4f1f8527-f46b-af4b-3ff3-c7a2e2db5710@gmail.com> (message from Jim Porter on Tue, 17 Jun 2025 09:33:01 -0700) Subject: Re: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls References: <df113cbb-427a-4508-91db-0b1adc4b6b19@picnicpark.org> <86iknudgsv.fsf@gnu.org> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@picnicpark.org> <aabea7d5-598c-4899-b182-bebf05bdfff5@picnicpark.org> <274d66da-d91d-821b-b1a5-d40263dd368e@gmail.com> <86jz5igjoa.fsf@gnu.org> <c6025ab2-179e-c848-6d6c-4ffc7f7faccb@gmail.com> <8aadf7a8-e1ed-4a77-b3be-759e7a5b6e41@picnicpark.org> <832d1d64-0751-4928-3a21-4f20f6bb5664@gmail.com> <f54e5436-9aeb-4141-8b70-94a9a880dfd5@picnicpark.org> <4f1f8527-f46b-af4b-3ff3-c7a2e2db5710@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77299 Cc: 77299@debbugs.gnu.org, camalot@picnicpark.org X-BeenThere: debbugs-submit@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@debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit@debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Tue, 17 Jun 2025 09:33:01 -0700 > Cc: 77299@debbugs.gnu.org > From: Jim Porter <jporterbugs@gmail.com> > > On 6/12/2025 9:47 AM, Keith Amidon wrote: > > If you have the time and interest to write the patch based on your > > superior knowledge of the code Jim that would be great. I'm motivated to > > have this work because I find using eww-readable-urls to make eww much > > more useful for my day-to-day usage (thanks for contributing it!) but I > > also heavily use org links which need the document title to work well. > > It took a bit longer than I thought to do this, but after a few failed > attempts, I think this patch is pretty close (aside from the couple of > small FIXMEs in there). > > As a bonus, this implementation is about 4x faster than the old one, > since it does all the work in a single pass over the DOM. For large > pages, simply computing the readable DOM can take a while; doing it for > the Wikipedia page for "Sun" takes a full second. Here are the stats > from calling the relevant code before and after (sum of 20 iterations): > > BEFORE: 20.635833s (15.510534s in 270 GCs) > AFTER: 4.320405s (3.041672s in 55 GCs) > > We could probably make this even faster by doing something more > efficient than '(length (split-string FOO))', but one thing at a time. > That's how the code was before, so I didn't change that bit. Thanks. > > My current personal workaround is working but I'd like to get a solution > > upstream and stop carrying it. If you come up with something you'd like > > help testing I'd be happy to help with that. If you can't get to it for > > a while I'll make time to poke at it. > > If the attached changed is too risky for the release branch It most definitely is. > I'm open to the idea of doing something like your workaround there, > maybe only when 'eww-auto-rename-buffer' is set to 'title'. That > way, people without that setting don't suffer any performance > penalty. Please show the patch so I could decide whether such a change is okay for emacs-30. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 19 15:28:05 2025 Received: (at 77299) by debbugs.gnu.org; 19 Jun 2025 19:28:06 +0000 Received: from localhost ([127.0.0.1]:38332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1uSKva-0003ZI-OS for submit@debbugs.gnu.org; Thu, 19 Jun 2025 15:28:05 -0400 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:50435) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <jporterbugs@gmail.com>) id 1uSKvX-0003XR-44 for 77299@debbugs.gnu.org; Thu, 19 Jun 2025 15:28:01 -0400 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-234d3261631so7585195ad.1 for <77299@debbugs.gnu.org>; Thu, 19 Jun 2025 12:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750361273; x=1750966073; darn=debbugs.gnu.org; h=in-reply-to:from:content-language:references:cc:to:subject :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=UYZ3xVGZQetdoRWBbkujK4KhXm6ZtJA7q+JR7bjZNw4=; b=KJ+Ufyom7I2w+ParokRXH//33qARcqZjN1gtX4jWLWfSI/08vYb+8F15N3FAY6V3s4 2BF8fikGqk/ll5ZqRsNSvBUrw/NO01HeAwfuu7uuRb/roQzajWjW1TRsL8bTNZS0trrj wYkmt+lNSAuN1xlsARX+fuAe2qOP/bV8cEKVmF2tdPjuSanfqfL6x8LuhJdxQ7/0+rvJ xiG9x/uF8rz0p3Z9zmLdhmJyZfGln1XfX9iNdx6AEXgdc4DQMmOrk8IX5hNoWd0P/6dz IqvCzrWQvJB3xhs9pkbFr7tMxTf8kVBGA5EZ+LCWuTB2xxZ/ocCa5zGTpVyfXThiBNzB BvJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750361273; x=1750966073; h=in-reply-to:from:content-language:references:cc:to:subject :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=UYZ3xVGZQetd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15b:f158 with SMTP id d9443c01a7336-237d97c32b6mr769475ad.13.1750361272742; Thu, 19 Jun 2025 12:27:52 -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-237d86103c1sm1162095ad.105.2025.06.19.12.27.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Jun 2025 12:27:52 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------Tiwyzu3vU91g5Zk4vrBHgNit" Message-ID: <e1a835b7-01dd-5bd0-dffe-c50d8c7da228@gmail.com> Date: Thu, 19 Jun 2025 12:27:53 -0700 MIME-Version: 1.0 Subject: Re: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls To: Eli Zaretskii <eliz@gnu.org> References: <df113cbb-427a-4508-91db-0b1adc4b6b19@picnicpark.org> <86iknudgsv.fsf@gnu.org> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@picnicpark.org> <aabea7d5-598c-4899-b182-bebf05bdfff5@picnicpark.org> <274d66da-d91d-821b-b1a5-d40263dd368e@gmail.com> <86jz5igjoa.fsf@gnu.org> <c6025ab2-179e-c848-6d6c-4ffc7f7faccb@gmail.com> <8aadf7a8-e1ed-4a77-b3be-759e7a5b6e41@picnicpark.org> <832d1d64-0751-4928-3a21-4f20f6bb5664@gmail.com> <f54e5436-9aeb-4141-8b70-94a9a880dfd5@picnicpark.org> <4f1f8527-f46b-af4b-3ff3-c7a2e2db5710@gmail.com> <86msa5mgld.fsf@gnu.org> Content-Language: en-US From: Jim Porter <jporterbugs@gmail.com> In-Reply-To: <86msa5mgld.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77299 Cc: 77299@debbugs.gnu.org, camalot@picnicpark.org X-BeenThere: debbugs-submit@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@debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit@debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> X-Spam-Score: -1.0 (-) This is a multi-part message in MIME format. --------------Tiwyzu3vU91g5Zk4vrBHgNit Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/18/2025 4:31 AM, Eli Zaretskii wrote: > Please show the patch so I could decide whether such a change is okay > for emacs-30. How about these patches? One for the master branch, and one for Emacs 30. --------------Tiwyzu3vU91g5Zk4vrBHgNit Content-Type: text/plain; charset=UTF-8; name="emacs30-0001-Populate-the-title-in-EWW-when-defaulting-to-readabl.patch" Content-Disposition: attachment; filename*0="emacs30-0001-Populate-the-title-in-EWW-when-defaulting-to-re"; filename*1="adabl.patch" Content-Transfer-Encoding: base64 RnJvbSA1MTllYjE0YTY0ZTNhOTIwOTkxMTEzMGEyOTFiMjc2ZDlmNmY5NjFmIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBKaW0gUG9ydGVyIDxqcG9ydGVyYnVnc0BnbWFpbC5j b20+CkRhdGU6IFRodSwgMTkgSnVuIDIwMjUgMTI6MjM6MjQgLTA3MDAKU3ViamVjdDogW1BB VENIXSBQb3B1bGF0ZSB0aGUgJzp0aXRsZScgaW4gRVdXIHdoZW4gZGVmYXVsdGluZyB0byBy ZWFkYWJsZSBtb2RlCgpEbyBub3QgbWVyZ2UgdG8gbWFzdGVyLgoKKiBsaXNwL25ldC9ld3cu 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VpcmVzIHJlbmRl cmluZyB0aGUgZG9jdW1lbnQgdHdpY2UsIGFuZCBtaWdodCBsb2FkCisgICAgICAgICAgOzsg aW1hZ2VzIHRoYXQgd291bGQgb3RoZXJ3aXNlIGJlIGV4Y2x1ZGVkIGZyb20gcmVhZGFibGUg bW9kZS4KKyAgICAgICAgICAoZXd3LWRpc3BsYXktZG9jdW1lbnQgKGV3dy1kb2N1bWVudC1i YXNlIHVybCBkb20pIHBvaW50IGJ1ZmZlcikpCiAgICAgICAgIChld3ctc2NvcmUtcmVhZGFi aWxpdHkgZG9tKQogICAgICAgICAoc2V0cSBkb20gKGV3dy1oaWdoZXN0LXJlYWRhYmlsaXR5 IGRvbSkpCiAgICAgICAgICh3aXRoLWN1cnJlbnQtYnVmZmVyIGJ1ZmZlcgotLSAKMi4yNS4x Cgo= --------------Tiwyzu3vU91g5Zk4vrBHgNit Content-Type: text/plain; charset=UTF-8; name="emacs31-0001-When-making-a-readable-page-in-EWW-include-the-title.patch" Content-Disposition: attachment; filename*0="emacs31-0001-When-making-a-readable-page-in-EWW-include-the-"; filename*1="title.patch" Content-Transfer-Encoding: base64 RnJvbSA1ODY2NDVkMjdhYzNhMWJjMmI1ODgyNzQzZjliYTNmY2VhNGRlM2NiIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBKaW0gUG9ydGVyIDxqcG9ydGVyYnVnc0BnbWFpbC5j b20+CkRhdGU6IFR1ZSwgMTcgSnVuIDIwMjUgMDk6MTE6NTUgLTA3MDAKU3ViamVjdDogW1BB VENIXSBXaGVuIG1ha2luZyBhIHJlYWRhYmxlIHBhZ2UgaW4gRVdXLCBpbmNsdWRlIHRoZSA8 dGl0bGU+IGFuZAogc2ltaWxhciB0YWdzCgoqIGxpc3AvbmV0L2V3dy5lbCAoZXd3LS13YWxr LXJlYWRhYmlsaXR5LCBld3ctcmVhZGFibGUtZG9tKTogTmV3CmZ1bmN0aW9ucy4KKGV3dy1k aXNwbGF5LWh0bWw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ZGFibGUgbWFrZS1yZWFkYWJsZSkKICAgICAo ZXd3LS1hZnRlci1wYWdlLWNoYW5nZSkpKQogCi0oZGVmdW4gZXd3LXNjb3JlLXJlYWRhYmls aXR5IChub2RlKQotICAobGV0ICgoc2NvcmUgLTEpKQotICAgIChjb25kCi0gICAgICgobWVt cSAoZG9tLXRhZyBub2RlKSAnKHNjcmlwdCBoZWFkIGNvbW1lbnQpKQotICAgICAgKHNldHEg c2NvcmUgLTIpKQotICAgICAoKGVxIChkb20tdGFnIG5vZGUpICdtZXRhKQotICAgICAgKHNl dHEgc2NvcmUgLTEpKQotICAgICAoKGVxIChkb20tdGFnIG5vZGUpICdpbWcpCi0gICAgICAo c2V0cSBzY29yZSAyKSkKLSAgICAgKChlcSAoZG9tLXRhZyBub2RlKSAnYSkKLSAgICAgIChz ZXRxIHNjb3JlICgtIChsZW5ndGggKHNwbGl0LXN0cmluZyAoZG9tLXRleHQgbm9kZSkpKSkp KQotICAgICAodAorKGRlZnVuIGV3dy0td2Fsay1yZWFkYWJpbGl0eSAobm9kZSBjYWxsYmFj ayAmb3B0aW9uYWwgbm9zY29yZSkKKyAgIldhbGsgdGhyb3VnaCBhbGwgY2hpbGRyZW4gb2Yg Tk9ERSB0byBzY29yZSByZWFkYWJpbGl0eS4KK0FmdGVyIHNjb3JpbmcsIGNhbGwgQ0FMTEJB Q0sgd2l0aCB0aGUgbm9kZSBhbmQgc2NvcmUuICBJZiBOT1NDT1JFIGlzCitub24tbmlsLCBk b24ndCBhY3R1YWxseSBjb21wdXRlIGEgc2NvcmU7IGp1c3QgY2FsbCB0aGUgY2FsbGJhY2su IgorICAobGV0ICgoc2NvcmUgbmlsKSkKKyAgICAodW5sZXNzIG5vc2NvcmUKKyAgICAgIChj b25kCisgICAgICAgKChzdHJpbmdwIG5vZGUpCisgICAgICAgIChzZXRxIHNjb3JlIChsZW5n dGggKHNwbGl0LXN0cmluZyBub2RlKSkKKyAgICAgICAgICAgICAgbm9zY29yZSB0KSkKKyAg ICAgICAoKG1lbXEgKGRvbS10YWcgbm9kZSkgJyhzY3JpcHQgaGVhZCBjb21tZW50KSkKKyAg ICAgICAgKHNldHEgc2NvcmUgLTIKKyAgICAgICAgICAgICAgbm9zY29yZSB0KSkKKyAgICAg ICAoKGVxIChkb20tdGFnIG5vZGUpICdtZXRhKQorICAgICAgICAoc2V0cSBzY29yZSAtMQor ICAgICAgICAgICAgICBub3Njb3JlIHQpKQorICAgICAgICgoZXEgKGRvbS10YWcgbm9kZSkg J2ltZykKKyAgICAgICAgKHNldHEgc2NvcmUgMgorICAgICAgICAgICAgICBub3Njb3JlIHQp KQorICAgICAgICgoZXEgKGRvbS10YWcgbm9kZSkgJ2EpCisgICAgICAgIChzZXRxIHNjb3Jl ICgtIChsZW5ndGggKHNwbGl0LXN0cmluZyAoZG9tLXRleHQgbm9kZSkpKSkKKyAgICAgICAg ICAgICAgbm9zY29yZSB0KSkKKyAgICAgICAodAorICAgICAgICAoc2V0cSBzY29yZSAtMSkp KSkKKyAgICAod2hlbiAoY29uc3Agbm9kZSkKICAgICAgIChkb2xpc3QgKGVsZW0gKGRvbS1j aGlsZHJlbiBub2RlKSkKLQkoY29uZAotICAgICAgICAgKChzdHJpbmdwIGVsZW0pCi0gICAg ICAgICAgKHNldHEgc2NvcmUgKCsgc2NvcmUgKGxlbmd0aCAoc3BsaXQtc3RyaW5nIGVsZW0p KSkpKQotICAgICAgICAgKChjb25zcCBlbGVtKQotCSAgKHNldHEgc2NvcmUgKCsgc2NvcmUK LQkJCSAob3IgKGNkciAoYXNzb2MgOmV3dy1yZWFkYWJpbGl0eS1zY29yZSAoY2RyIGVsZW0p KSkKLQkJCSAgICAgKGV3dy1zY29yZS1yZWFkYWJpbGl0eSBlbGVtKSkpKSkpKSkpCi0gICAg OzsgQ2FjaGUgdGhlIHNjb3JlIG9mIHRoZSBub2RlIHRvIGF2b2lkIHJlY29tcHV0aW5nIGFs bCB0aGUgdGltZS4KLSAgICAoZG9tLXNldC1hdHRyaWJ1dGUgbm9kZSA6ZXd3LXJlYWRhYmls aXR5LXNjb3JlIHNjb3JlKQorICAgICAgICAobGV0ICgoc3Vic2NvcmUgKGV3dy0td2Fsay1y ZWFkYWJpbGl0eSBlbGVtIGNhbGxiYWNrIG5vc2NvcmUpKSkKKyAgICAgICAgICAod2hlbiAo YW5kIChub3Qgbm9zY29yZSkgc3Vic2NvcmUpCisgICAgICAgICAgICAoaW5jZiBzY29yZSBz dWJzY29yZSkpKSkpCisgICAgKGZ1bmNhbGwgY2FsbGJhY2sgbm9kZSBzY29yZSkKICAgICBz Y29yZSkpCiAKKyhkZWZ1biBld3ctcmVhZGFibGUtZG9tIChkb20pCisgICJSZXR1cm4gYSBy ZWFkYWJsZSB2ZXJzaW9uIG9mIERPTS4iCisgIChsZXQgKChoZWFkLW5vZGVzIG5pbCkKKyAg ICAgICAgKGJlc3Qtbm9kZSBuaWwpCisgICAgICAgIChiZXN0LXNjb3JlIG1vc3QtbmVnYXRp dmUtZml4bnVtKSkKKyAgICAoZXd3LS13YWxrLXJlYWRhYmlsaXR5CisgICAgIGRvbQorICAg ICAobGFtYmRhIChub2RlIHNjb3JlKQorICAgICAgICh3aGVuIChjb25zcCBub2RlKQorICAg ICAgICAgKHdoZW4gKGFuZCBzY29yZSAoPiBzY29yZSBiZXN0LXNjb3JlKQorICAgICAgICAg ICAgICAgICAgICA7OyBXZSBzZXQgYSBsb3dlciBib3VuZCB0byBob3cgbG9uZyB3ZSBhY2Nl cHQgdGhhdAorICAgICAgICAgICAgICAgICAgICA7OyB0aGUgcmVhZGFibGUgcG9ydGlvbiBv ZiB0aGUgcGFnZSBpcyBnb2luZyB0byBiZS4KKyAgICAgICAgICAgICAgICAgICAgKD4gKGxl bmd0aCAoc3BsaXQtc3RyaW5nIChkb20tdGV4dHMgbm9kZSkpKSAxMDApKQorICAgICAgICAg ICAoc2V0cSBiZXN0LXNjb3JlIHNjb3JlCisgICAgICAgICAgICAgICAgIGJlc3Qtbm9kZSBu b2RlK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ZSAnZXd3LXJlYWRhYmxlLWRvbSAiMzEuMSIpKQogICAobGV0 ICgocmVzdWx0IG5vZGUpCiAJaGlnaGVzdCkKICAgICAoZG9saXN0IChlbGVtIChkb20tbm9u LXRleHQtY2hpbGRyZW4gbm9kZSkpCi0tIAoyLjI1LjEKCg== --------------Tiwyzu3vU91g5Zk4vrBHgNit-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 19 20:34:30 2025 Received: (at 77299) by debbugs.gnu.org; 20 Jun 2025 00:34:31 +0000 Received: from localhost ([127.0.0.1]:40494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1uSPiA-0007wB-1g for submit@debbugs.gnu.org; Thu, 19 Jun 2025 20:34:30 -0400 Received: from hedgehog.birch.relay.mailchannels.net ([23.83.209.81]:15841) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <camalot@picnicpark.org>) id 1uSPi4-0007uz-Ed for 77299@debbugs.gnu.org; Thu, 19 Jun 2025 20:34:25 -0400 X-Sender-Id: dreamhost|x-authsender|camalot@picnicpark.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id E60B521AF0; Fri, 20 Jun 2025 00:34:22 +0000 (UTC) Received: from pdx1-sub0-mail-a262.dreamhost.com (100-127-199-198.trex-nlb.outbound.svc.cluster.local [100.127.199.198]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 5B56E21C0B; Fri, 20 Jun 2025 00:34:22 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1750379662; a=rsa-sha256; cv=none; b=aFxD2+AcpUlJJqdZTIvHYxMKHA9exXRhFKuBXmKWI7QpRQlroN+sfghMKFwCweW43UsAdH 3FmvL95CTjPOxIitr9ODL8H3RSwlbYu3UOUmns8/7uzH9fcwxHxqeoIgVv8FP/1UrRlCaH SMEzFbMNpkjfSPBc9Rb3dsKeh39fq80Ejkq+UgFvQSDBjY6svPr8pGMZVap86r1e/9U0Q8 IYVWzYi9kcz0nMChJebcSSGosuLe7DXaqdguGrv/WVIBqIZ3ZNtv7L2WZYL4G8+WgJtH4I blep/TJotZMqpmOD8CcHlUMJqkrguxloC4BnFIZ7IqoBuxL2spDxweH+LFEZDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1750379662; 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=WCIiDM1hgbD/80g2+wux5Tc7MZLNAY5nxRpzoBb52VY=; b=Y+uIl92+Qi5CfXycBQhYAOt+sxGQwUlaUqcIrtY31WnQRQVoAHqCYNvwL9BJGAc5yb8Pzy vENx6RcIeralEAswWDq/YFxlg5Vk1OHBfWUUE1tetkUtF7T0huw8qQcUnH0EirPSADkQ83 27W8BrVZiyjQn7PDVQSuCrV3XR0GWQ5i63KDMhufp+Vn4PYDKTJCrhHVoBrl4mUaD60QhE O/ctBbS1ynEzaEno9I5Stc2pLf5FCaySlMIZ85S0PzIkuZnAMAeZwnuDdGiLWP+gsm+rZv cdzW/Ye8sYjlm3ZB6mJFwaOOVtRAzJ19aFnFFCyA+mgu70wNEvgkzyeqR3VmZQ== ARC-Authentication-Results: i=1; rspamd-679c59f89-ghqth; auth=pass smtp.auth=dreamhost smtp.mailfrom=camalot@picnicpark.org X-Sender-Id: dreamhost|x-authsender|camalot@picnicpark.org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|camalot@picnicpark.org X-MailChannels-Auth-Id: dreamhost X-Imminent-Exultant: 3dc52dc847d7e596_1750379662668_2659098324 X-MC-Loop-Signature: 1750379662668:3645363918 X-MC-Ingress-Time: 1750379662668 Received: from pdx1-sub0-mail-a262.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.127.199.198 (trex/7.0.3); Fri, 20 Jun 2025 00:34:22 +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@picnicpark.org) by pdx1-sub0-mail-a262.dreamhost.com (Postfix) with ESMTPSA id 4bNdlL1RtyzP5; Thu, 19 Jun 2025 17:34:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=picnicpark.org; s=dreamhost; t=1750379662; bh=WCIiDM1hgbD/80g2+wux5Tc7MZLNAY5nxRpzoBb52VY=; h=Date:Subject:To:Cc:From:Content-Type:Content-Transfer-Encoding; b=EWyBzB4A/Y986P+xes79rZ6ZvXPAj28Z2pFLEeHNW7wJjN3WVOimPVBz8ojlH5+VZ J3kBrQ1FEHJsyUuW2ev3a/lgkSwWJhgAXtKfSHL5pIbZGYvZUSbG5QflXrJXS1gNef JxhcjBU59VjEKVjdG1WSh7eQCeeNUkelYQibgB9L9kMu05QxOdKTuvhJtl/HViGgbD h4opNk5gruepLVmD5W8aFDkWKqParOSBiNYpYyM3/C1UMipncDTUMoOzvdxCSYcN1l m2wXL2d/yudqC1TLwnu1KgLja0ZJAjJAL39+ihFpcgLwFhM7B3Xt8caXct1xLlBjlF S3f6siC9K1sZQ== Received: from [192.168.40.2] (ithil-10Gbps-1.picnicpark.org [192.168.40.2]) by imladris.picnicpark.org (Postfix) with ESMTPSA id 65CBC51A7B4E; Thu, 19 Jun 2025 17:34:21 -0700 (PDT) Message-ID: <1e571a2d-5812-4de9-a333-b29f2fad4628@picnicpark.org> Date: Thu, 19 Jun 2025 17:34:21 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls To: Jim Porter <jporterbugs@gmail.com>, Eli Zaretskii <eliz@gnu.org> References: <df113cbb-427a-4508-91db-0b1adc4b6b19@picnicpark.org> <86iknudgsv.fsf@gnu.org> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@picnicpark.org> <aabea7d5-598c-4899-b182-bebf05bdfff5@picnicpark.org> <274d66da-d91d-821b-b1a5-d40263dd368e@gmail.com> <86jz5igjoa.fsf@gnu.org> <c6025ab2-179e-c848-6d6c-4ffc7f7faccb@gmail.com> <8aadf7a8-e1ed-4a77-b3be-759e7a5b6e41@picnicpark.org> <832d1d64-0751-4928-3a21-4f20f6bb5664@gmail.com> <f54e5436-9aeb-4141-8b70-94a9a880dfd5@picnicpark.org> <4f1f8527-f46b-af4b-3ff3-c7a2e2db5710@gmail.com> <86msa5mgld.fsf@gnu.org> <e1a835b7-01dd-5bd0-dffe-c50d8c7da228@gmail.com> Content-Language: en-US From: Keith Amidon <camalot@picnicpark.org> In-Reply-To: <e1a835b7-01dd-5bd0-dffe-c50d8c7da228@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77299 Cc: 77299@debbugs.gnu.org X-BeenThere: debbugs-submit@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@debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit@debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 6/19/25 12:27, Jim Porter wrote: > How about these patches? One for the master branch, and one for emacs 30. I'm afraid I haven't been able to get to trying out either of the patches yet, though the emac30 patch looks trivially correct. I hope to get to it before next Monday. However, I do want to briefly discuss the decision to make the emacs 30 workaround conditional on eww-auto-rename-buffer having the value 'title. This does minimize the situations in which the additional rendering is done, which is desirable. However, I think it will push people who might not have that setting to make it to enable other functionality that doesn't work properly when the title of the web page is unknown. For example, eww-list-histories does not show page titles and org-store-link captures links with unusable link text (because it uses the title). I'm happy to accept that tradeoff as a way of minimizing the risk of the changes to the current release if everyone agrees with it. Thanks again for putting together these fixes. I'm especially looking forward to the improved version for emacs 31! I'll post another update after I've tried that out. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 19 23:05:26 2025 Received: (at 77299) by debbugs.gnu.org; 20 Jun 2025 03:05:26 +0000 Received: from localhost ([127.0.0.1]:42652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1uSS4D-0001UB-LW for submit@debbugs.gnu.org; Thu, 19 Jun 2025 23:05:26 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:53454) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <jporterbugs@gmail.com>) id 1uSS49-0001No-Jm for 77299@debbugs.gnu.org; Thu, 19 Jun 2025 23:05:23 -0400 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-7490acf57b9so279897b3a.2 for <77299@debbugs.gnu.org>; Thu, 19 Jun 2025 20:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750388715; x=1750993515; 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=oCKl6oh5gNELpnaD+7fHrMkVZFZ2DpcXc3CVvRABnbY=; b=CFsdMsdZFRphi4nSm3PydGcmqRpOqB5ENXqSfigbS/5ni/eeGlzFq+5rmEzsK5/Zps adkWBfdc/iGlUNF5wm55BW/xdkv6l3aNYYok4V5kdrhviyyTVV/q39fvfnMJ2oZ6mEfh EE560KXMvDmdI8LgifrQryn5sYL+9TzlAWGSkEzaA08I52MgrXPqe3vCdlcoHSPY3wox ZvpAP1gkOtTIArOAmbXKaWS/qmNLPy4durTMfX5UBvJralB2AIs1ga/sUeCIttwotzja 5VzX/YqMaz1UO2W/YCvkIksCYHAxgm7cpLsKfyh7gcJwC6V2NviNSmqWAEt2UzLPnvuf O8sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750388715; x=1750993515; 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=oCKl6oh5gNELpnaD+7fHrMkVZFZ2DpcXc3CVvRABnbY=; b=fbPTfnWa4OHMRngRNBGxpus3tZFZFEDTzi5watFEFLfF8n/s44toqV6qAlYxOh5lWf 15cN4UUBHKlnHb5YW35eoj0xAqEmp8dcAOYyAkGBjJV2TPYKAXQJYZzLDZ4nqyCN4Gxg X6FB1ewVo8eBjS8zCUoCqNpPZP+3l/SDAnhSKhMsjDb0bO5Y9zMcgj9CJ+Qg5Ym8xiAs dhhl+QdV/oWkSUgbNmuWKMvZxgHpPs0aGkZUbBZFoqaWYitZpV4hjO8l1fgzWUigxL3d QGKJYY3o5H03KrcrJEqpdJDI/UPlfi98ueqJHgA9rXjWMU4qzAWQs54n8m0YeP0u7BJi b4zw== X-Gm-Message-State: AOJu0YwFSuM2Fm7T6zXCAh/NL6vBhpEIp2n2ErwrSvCk8/dbytIWVaPt P4QYv+kvJh+15IPJj1RMhM3ub/TBxv/LE1WXfSx3/Tepgcb7cI3nlA8K X-Gm-Gg: ASbGncv8JD4COm2DH6+djuNetcDtbgINv4O0O0FkhqKFmEhZT7ovf6DDpTXQitxMDhK BgU1RKJrzwk9c/dHbTtI6y0r4Ymgy63RcFgAr7QmvGLChfZ4HwoRd42RpvVO8wqJA1BfNccEdYV gjt3U64MrAw5JtZxCYGqs12jCdPN60979mQA8h32LV5DjohJ78ChO9qn39pJkfGu9Yor/lynBu6 HcK8yOz8exieq9YJiOAnEPh5mQX0/RsdzQfn+85jYiHdlf31FPzTpafZ3/g3WHWgJvDIM3/HVnp e9kQTBivHM4Cv5Fl52K02gOb9f5aAm5uz5VstJS5JVIPYROCM0iG4SnQZMfNtGTrgeDeM0SvPT7 DdHH1v0QwmOXOsaP96JjQwRrBvHfxrsHh9eGiS8MRsg== X-Google-Smtp-Source: AGHT+IEmIne3SWRdN9WL8IBfDonoyj/98gClJsFqOIHBDqtyXeDN8C3fL0fWsouImOxeGzZqMFuDRQ== X-Received: by 2002:a05:6a20:ce4f:b0:215:df90:b298 with SMTP id adf61e73a8af0-22026f58dc0mr1649961637.26.1750388715041; Thu, 19 Jun 2025 20:05:15 -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 d2e1a72fcca58-7490a62157esm910456b3a.99.2025.06.19.20.05.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Jun 2025 20:05:14 -0700 (PDT) Message-ID: <64b0d32f-ca22-edda-d268-c4b58d0a8dff@gmail.com> Date: Thu, 19 Jun 2025 20:05:16 -0700 MIME-Version: 1.0 Subject: Re: bug#77299: eww-auto-rename-buffer 'title interaction with eww-readable-urls Content-Language: en-US To: Keith Amidon <camalot@picnicpark.org>, Eli Zaretskii <eliz@gnu.org> References: <df113cbb-427a-4508-91db-0b1adc4b6b19@picnicpark.org> <86iknudgsv.fsf@gnu.org> <7ecf1a2b-decb-49f3-b869-9bb4f26f2981@picnicpark.org> <aabea7d5-598c-4899-b182-bebf05bdfff5@picnicpark.org> <274d66da-d91d-821b-b1a5-d40263dd368e@gmail.com> <86jz5igjoa.fsf@gnu.org> <c6025ab2-179e-c848-6d6c-4ffc7f7faccb@gmail.com> <8aadf7a8-e1ed-4a77-b3be-759e7a5b6e41@picnicpark.org> <832d1d64-0751-4928-3a21-4f20f6bb5664@gmail.com> <f54e5436-9aeb-4141-8b70-94a9a880dfd5@picnicpark.org> <4f1f8527-f46b-af4b-3ff3-c7a2e2db5710@gmail.com> <86msa5mgld.fsf@gnu.org> <e1a835b7-01dd-5bd0-dffe-c50d8c7da228@gmail.com> <1e571a2d-5812-4de9-a333-b29f2fad4628@picnicpark.org> From: Jim Porter <jporterbugs@gmail.com> In-Reply-To: <1e571a2d-5812-4de9-a333-b29f2fad4628@picnicpark.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77299 Cc: 77299@debbugs.gnu.org X-BeenThere: debbugs-submit@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@debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit@debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> X-Spam-Score: -1.0 (-) On 6/19/2025 5:34 PM, Keith Amidon wrote: > However, I do want to briefly discuss the decision to make the emacs 30 > workaround conditional on eww-auto-rename-buffer having the value > 'title. This does minimize the situations in which the additional > rendering is done, which is desirable. However, I think it will push > people who might not have that setting to make it to enable other > functionality that doesn't work properly when the title of the web page > is unknown. Hmm, good point. One possibility would be to add a new user option just for Emacs 30 to enable/disable this workaround. Or maybe we should just accept that we need to render the page twice for now. That's less efficient, but more correct. I don't have a strong feeling on the matter though, so if anyone else does, I'll happily go along with what others suggest.