From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: bug-reference.el: Allow custom handlers for opening URLs Date: Tue, 05 May 2020 09:49:29 -0400 Message-ID: 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="58768"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 05 15:57:17 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 1jVy4S-000F8X-Ke for ged-emacs-devel@m.gmane-mx.org; Tue, 05 May 2020 15:57:16 +0200 Original-Received: from localhost ([::1]:59866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVy4R-00065H-N2 for ged-emacs-devel@m.gmane-mx.org; Tue, 05 May 2020 09:57:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVxwz-00033S-Au for emacs-devel@gnu.org; Tue, 05 May 2020 09:49:33 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:55696) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVxwy-0000yG-F5 for emacs-devel@gnu.org; Tue, 05 May 2020 09:49:32 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id CBC74450956; Tue, 5 May 2020 09:49:31 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 5F727450950; Tue, 5 May 2020 09:49:30 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1588686570; bh=p1KYkwy870U5FVfQZOylhhylm4mQHXkj8SgY1WMJyuc=; h=From:To:Subject:References:Date:In-Reply-To:From; b=W2jtZ9v7ZN5s4Lt9AKAX6ssp2L6d6RPYzcdJft0Jpfj7gBLBSza4zrzOzbR76r9wb wSXocmD31ROk1eMg3yyfj5G9slq/10Cz7VU5EIFyvUdRpa4kNOP0wEbyCb4LWJd+Az ZGdqKhJmlJHvSP05yVWDq5u3cLui465w6GyHWPuVcADsupELM8qwX5zaPohS98B2Yq e0YaXcmP83cOD9XC323DT2IvbdrpeY2Vbe4N8bcs8zBjGbKw6saUVPPeKtsTBgA0N5 wRBYwMyhMyabBe0IUEn9mS83869BbO0cAumyPbwlRtryC2PMAoBuOpMGkSaal+Wyfj Gqs/Rrjnk2hmQ== Original-Received: from alfajor (unknown [216.154.3.202]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E837B120792; Tue, 5 May 2020 09:49:29 -0400 (EDT) In-Reply-To: <87wo5qg8sl.fsf@gnu.org> (Tassilo Horn's message of "Tue, 05 May 2020 09:06:34 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/05 09:45:35 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:248986 Archived-At: >> 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`). >> But they're not autoloaded, so in the loaddefs.el file, you have >> a reference to it without the preceding definition. > I'm pretty sure I've tried adding autoload cookies to them as well and > got the same error. I'm pretty sure this can be made to work, but yes it's fiddly and it's not the way I'd recommend in any case. Stefan