From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: bug-reference.el: Allow custom handlers for opening URLs Date: Sun, 03 May 2020 17:24:32 +0200 Message-ID: <87d07l3utr.fsf@gnu.org> References: <87h7wx4d24.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="89636"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 03 17:25:23 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jVGUc-000NDI-Li for ged-emacs-devel@m.gmane-mx.org; Sun, 03 May 2020 17:25:22 +0200 Original-Received: from localhost ([::1]:57194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVGUb-0007AD-N6 for ged-emacs-devel@m.gmane-mx.org; Sun, 03 May 2020 11:25:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51610) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVGTs-0006eb-5v for emacs-devel@gnu.org; Sun, 03 May 2020 11:24:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54604) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVGTr-0005ys-RJ; Sun, 03 May 2020 11:24:35 -0400 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:46457) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jVGTr-0005ME-LJ; Sun, 03 May 2020 11:24:35 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id 1ED3E27C0058; Sun, 3 May 2020 11:24:35 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sun, 03 May 2020 11:24:35 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrjedvgdekkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufhffjgfkfgggtgesthdtredttdertdenucfhrhhomhepvfgrshhsihhl ohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpedtle eiffekueffudeufeefhfeitdejuedtueevgeffgfdtjeelkeehgeekteekveenucfkphep keegrddufedvrddutdekrddvfeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghl ihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfh grshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: from thinkpad-t440p (p54846ceb.dip0.t-ipconnect.de [84.132.108.235]) by mail.messagingengine.com (Postfix) with ESMTPA id 44B2A3280067; Sun, 3 May 2020 11:24:34 -0400 (EDT) Mail-Followup-To: Stefan Monnier , emacs-devel@gnu.org In-Reply-To: (Stefan Monnier's message of "Sun, 03 May 2020 10:44:59 -0400") X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:248705 Archived-At: Stefan Monnier writes: >> currently all bug references are opened using `browse-url'. I'd like >> to have a way to override that behavior, e.g., so that I can use the >> debbugs package for reports for GNU packages using the debbugs >> tracker. >> >> Below is a patch which makes that possible. Is it ok to commit that? >> Something to improve? > > How 'bout hooking into browse-url instead, so that all uses of > browse-url for debbugs URLs would be redirected to the debbugs > package? Yes, that's probably even better/more generic. But again, I wouldn't want to hard-code that, so I guess we'd want some `browse-url-handlers' in browse-url.el doing basically the same as the `bug-reference-url-handlers' I proposed, right? Looking at it, there're already some special handlers for mailto: and man: page URLs. Should I convert those to default entries of the new `browse-url-handlers' alist? (IMHO, yes.) And should the presence of `debbugs-gnu-bugs' create an entry in the alist, i.e., should having debbugs installed be enough to open bug links with debbugs or should we still be using the browser? Bye, Tassilo