From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jose Antonio Ortega Ruiz Newsgroups: gmane.emacs.bugs Subject: bug#51176: eww switch buffer by title Date: Fri, 15 Oct 2021 20:59:43 +0100 Message-ID: <87r1cmoy8g.fsf@gnus.jao.io> 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> <87pms8psyt.fsf@protesilaos.com> <87r1co1x8f.fsf@gnus.org> <87bl3qiysk.fsf@protesilaos.com> <87sfx24lua.fsf@gnus.org> <87ee8my1l8.fsf@protesilaos.com> <87a6ja4hb3.fsf@gnus.org> <8735p2qv1w.fsf@gnus.jao.io> <87ilxy2xrb.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="23567"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Protesilaos Stavrou , 51176@debbugs.gnu.org, Yuchen Pei , Abhiseck Paira , Juri Linkov To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 15 22:00:13 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 1mbTNF-0005u9-K0 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Oct 2021 22:00:13 +0200 Original-Received: from localhost ([::1]:42098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbTND-0003P9-Kj for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Oct 2021 16:00:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbTN5-0003Nv-11 for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 16:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57143) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbTN4-0002MY-MM for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 16:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mbTN4-000437-II for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2021 16:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jose Antonio Ortega Ruiz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Oct 2021 20:00:02 +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.163432799615522 (code B ref 51176); Fri, 15 Oct 2021 20:00:02 +0000 Original-Received: (at 51176) by debbugs.gnu.org; 15 Oct 2021 19:59:56 +0000 Original-Received: from localhost ([127.0.0.1]:40456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbTMx-00042I-Vv for submit@debbugs.gnu.org; Fri, 15 Oct 2021 15:59:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbTMt-000424-MA for 51176@debbugs.gnu.org; Fri, 15 Oct 2021 15:59:54 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44016) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbTMn-0000oW-Kn; Fri, 15 Oct 2021 15:59:45 -0400 Original-Received: from cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net ([92.233.85.247]:40190 helo=osgiliath.local) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbTMn-00014n-Dq; Fri, 15 Oct 2021 15:59:45 -0400 Original-Received: by osgiliath.local (Postfix, from userid 1000) id 1ACE24223F; Fri, 15 Oct 2021 20:59:43 +0100 (BST) In-Reply-To: <87ilxy2xrb.fsf@gnus.org> X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: 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:217328 Archived-At: On Fri, Oct 15 2021, Lars Ingebrigtsen wrote: > Jose Antonio Ortega Ruiz writes: > >> Since you went for the complex config, and additional option i'd find >> useful for the ewww rename "flag" would be a string that specifies the >> format to use once the title/url part has been computed. So one can set >> it to, say, "eww: %s", or whatever. I know that that use case is already >> covered by the possibility of specifying a function, but having to >> duplicate the default function just to change the final format string >> feels a bit overkill (and i suspect changing the format is going to be a >> very common reason to opt for a function call). > > I think it's best to leave that sort of flexibility to the function > option -- there's too many ways users may want to customise this. but, 43.45% of users will simply want to change the format and get rid of "# eww" at the end to see more of the title! :) specifying a format string is extremely common in many packages out there for things like this, and is, in my opinion, much more user-friendly: to change that format with a function, one has to study eww's api for obtaining title and url, and write a non-trivial piece of elisp, probably (although admittedly not necessarily) outside the customization interface. in other words, i find the format string option as natural and common as the nil and t ones (which, in a way, are also redundant and could be removed, since it's trivial to write a function for them). but i'm probably exaggerating: people will simply copy and paste the relevant piece of elisp in their init files and call it a day. so i'll stop the bike-shedding now :) cheers, jao -- Love, friendship, respect, do not unite people as much as a common hatred for something. -Anton Chekhov (1860-1904)