From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Protesilaos Stavrou Newsgroups: gmane.emacs.bugs Subject: bug#51176: eww switch buffer by title Date: Wed, 13 Oct 2021 23:31:22 +0300 Message-ID: <87pms8psyt.fsf@protesilaos.com> References: <87v9214j6g.fsf@ypei.me> <87lf2x6t11.fsf@gnus.org> <87fst53ytg.fsf@ypei.me> <871r4p6q5n.fsf@gnus.org> <871r4oyjm1.fsf@mail.linkov.net> <875yu050sz.fsf@gnus.org> <875yu0x256.fsf@mail.linkov.net> <87wnmg3i8f.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9570"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Notmuch/0.33.2 (https://notmuchmail.org) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 51176@debbugs.gnu.org, Yuchen Pei To: Lars Ingebrigtsen , Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 13 22:32:14 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1makv8-0002Jt-2X for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Oct 2021 22:32:14 +0200 Original-Received: from localhost ([::1]:47090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1makv7-00039K-57 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Oct 2021 16:32:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1makuw-00036m-G5 for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2021 16:32:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50379) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1makuw-0006tA-3U for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2021 16:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1makuw-0006rH-0Z for bug-gnu-emacs@gnu.org; Wed, 13 Oct 2021 16:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Protesilaos Stavrou Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Oct 2021 20:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51176 X-GNU-PR-Package: emacs Original-Received: via spool by 51176-submit@debbugs.gnu.org id=B51176.163415709426325 (code B ref 51176); Wed, 13 Oct 2021 20:32:01 +0000 Original-Received: (at 51176) by debbugs.gnu.org; 13 Oct 2021 20:31:34 +0000 Original-Received: from localhost ([127.0.0.1]:33692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1makuU-0006qX-7U for submit@debbugs.gnu.org; Wed, 13 Oct 2021 16:31:34 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:50223) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1makuS-0006qH-9k for 51176@debbugs.gnu.org; Wed, 13 Oct 2021 16:31:32 -0400 Original-Received: (Authenticated sender: public@protesilaos.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 3C604C0004; Wed, 13 Oct 2021 20:31:23 +0000 (UTC) In-Reply-To: <87wnmg3i8f.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:217176 Archived-At: On 2021-10-13, 20:14 +0200, Lars Ingebrigtsen wrote: > Juri Linkov writes: > >> I see. Then maybe in the existing hook `eww-after-render-hook'? > > Yup; I misread the code -- that looks like the correct place to put it. > But I can also see many people wanting this, so perhaps a user option to > rename the buffers this way would be nice. That is right. I am preparing together with another person a patch that auto-renames eww buffers after they are rendered. The idea is to use either the page title or, if that is not available, the page's URL. In terms of user options, there would be a toggle to enable the behaviour (off by default to not upset existing users) as well as a defcustom with ":type 'function", so users can specify exactly how the renaming scheme should work. I expect the code to be finalised within the coming days, in case you have not done the work already. -- Protesilaos Stavrou https://protesilaos.com