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: [elpa] master 2a29130: Make debbugs install a handler in browse-url-default-handlers. Date: Thu, 11 Jun 2020 09:26:22 +0200 Message-ID: <87pna6vza9.fsf@gnu.org> References: <20200507122008.22755.28768@vcs0.savannah.gnu.org> <20200507122010.213B720A15@vcs0.savannah.gnu.org> <87o8qzvrqg.fsf@gnus.org> <214c3d1f-c0b3-4e70-8f73-e3efa53d9bb9@beta.fastmail.com> <87o8qkruim.fsf@gnus.org> <878sgv9bqm.fsf@gnus.org> <87eeqmsroe.fsf@gnu.org> <87y2oueo4h.fsf@gmx.de> <871rmmwsy5.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="74355"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 11 09:27:11 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 1jjHcF-000JF6-14 for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Jun 2020 09:27:11 +0200 Original-Received: from localhost ([::1]:60500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjHcD-00075e-VJ for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Jun 2020 03:27:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjHbW-0006dI-SU for emacs-devel@gnu.org; Thu, 11 Jun 2020 03:26:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57696) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjHbW-00047P-5H; Thu, 11 Jun 2020 03:26:26 -0400 Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:54729) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jjHbV-0002Xe-01; Thu, 11 Jun 2020 03:26:25 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id 70AE827C0054; Thu, 11 Jun 2020 03:26:24 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Thu, 11 Jun 2020 03:26:24 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudehjedguddvtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufhffjgfkfgggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe dtleeiffekueffudeufeefhfeitdejuedtueevgeffgfdtjeelkeehgeekteekveenucfk phepleefrddvfeeirddufeeirdefudenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgr lhhithihqdekieejfeekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgse hfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from thinkpad-t440p (p5dec881f.dip0.t-ipconnect.de [93.236.136.31]) by mail.messagingengine.com (Postfix) with ESMTPA id 7E566328006B; Thu, 11 Jun 2020 03:26:23 -0400 (EDT) Mail-Followup-To: Stefan Monnier , Emacs developers In-Reply-To: (Stefan Monnier's message of "Wed, 10 Jun 2020 16:58:45 -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:252103 Archived-At: Stefan Monnier writes: >> the default value of `bug-reference-url-format' (which has no default >> value right now)? Then you could simply enable `bug-reference-mode' >> wherever you want (especially in MUAs like rmail/Gnus/mu4e) and >> bug#17171 become clickable and opened immediately in debbugs if > > Right, but bug#345 also becomes clickable in places where it has > nothing to do with Emacs :-( Yes, that's true. And essentially that's the case right now, too, except that "clicking" it (C-c RET) is no no-op whereas it would open a wrong (emacs) bug then. > `debbugs.el` could configure Gnus/Rmail/mu4e to set this var when > viewing a message sent to emacs-devel, tho. Nah, what does that have to do with debbugs really? The task is to set the right `bug-reference-url-format' automatically. How the bug report is opened later on is handled by `browse-url-handlers' and `browse-url-default-handlers'. How about adding a defcustom `bug-reference-guess-url-format-functions' and a defvar `bug-reference-guess-url-format-default-functions' being lists of zero-arg functions guessing the right `bug-reference-url-format' from things like VCS URL of the current file, Gnus group, rmail, etc. Again the "default" one would be for making Emacs (packages like Gnus) hook in, the other is for the user. I'd be willing to work on that. Bye, Tassilo