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: Tue, 05 May 2020 17:51:44 +0200 Message-ID: <87eery9y7j.fsf@gnu.org> References: <87h7wx4d24.fsf@gnu.org> <87d07l3utr.fsf@gnu.org> <87tv0w9gw6.fsf@gnu.org> <87h7wvd3uk.fsf@gnu.org> <87wo5qg8sl.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="93316"; 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 Tue May 05 17:53:04 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 1jVzsT-000O3Y-50 for ged-emacs-devel@m.gmane-mx.org; Tue, 05 May 2020 17:53:01 +0200 Original-Received: from localhost ([::1]:50358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVzsR-0005X8-J6 for ged-emacs-devel@m.gmane-mx.org; Tue, 05 May 2020 11:52:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVzrI-0004EK-Et for emacs-devel@gnu.org; Tue, 05 May 2020 11:51:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56704) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVzrH-0003HS-RO; Tue, 05 May 2020 11:51:47 -0400 Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:52575) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jVzrG-0007np-TP; Tue, 05 May 2020 11:51:47 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id 2FA6C27C0054; Tue, 5 May 2020 11:51:46 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Tue, 05 May 2020 11:51:46 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrjeeigdeklecutefuodetggdotefrodftvf 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 5EEA63280063; Tue, 5 May 2020 11:51:45 -0400 (EDT) Mail-Followup-To: Stefan Monnier , emacs-devel@gnu.org In-Reply-To: (Stefan Monnier's message of "Tue, 05 May 2020 09:49:29 -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:249003 Archived-At: Stefan Monnier writes: >>> After all, the autoloads are supposed to run before the .emacs, so >>> the user can `add-to-list` just fine to override whatever was added >>> by autoloads. >> I don't quite understand. Let's assume debbugs would add a handler >> and I wouldn't like to use it. Isn't it correct that it would add it >> as soon as it is loaded > > No, it would add it via an ;;;###autoload cookie, so it's added when > the package is activated (which used to happen via a call to > `package-initialize` either inside the .emacs or, as a last resort, > afterwards, but since Emacs-27 it now happens before the .emacs is > loaded via a call to `package-activate-all`). Ok, I see. I want to come to a decision now. What should we choose? Either (a) a defvar for packages to plug in their url handler plus a defcustom for the user's preferences and to override the defvar's values, or (b) just a single defvar being used by both packages and the user. I would prefer option (a) because I think this feature should be easily configurable by users, i.e., without having to write Lisp code. And maybe also because not every package author might know that they should add their handler with an autoload cookie. I'm also open for an option (c). :-) Bye, Tassilo