From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64901: 29.1; use-package fails to require bind-key at runtime in compiled files Date: Fri, 28 Jul 2023 15:12:34 +0300 Message-ID: <83cz0cjkul.fsf@gnu.org> References: <11c7327a-236e-7dab-e6bd-215fd9aac972@fiander.info> <83jzull2jp.fsf@gnu.org> <83h6ppl1n3.fsf@gnu.org> <83v8e4jzhh.fsf@gnu.org> <87wmykfkqk.fsf@epfl.ch> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31521"; mail-complaints-to="usenet@ciao.gmane.io" Cc: johnw@gnu.org, 64901@debbugs.gnu.org, david@fiander.info To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 28 14:14:47 2023 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 1qPMMp-0007zy-7o for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Jul 2023 14:14:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPMKE-0007EX-QE; Fri, 28 Jul 2023 08:12:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPMKA-0007DK-P8 for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 08:12:04 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qPMKA-0007y3-Hm for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 08:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qPMKA-0004Pt-Ck for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 08:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Jul 2023 12:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64901 X-GNU-PR-Package: emacs Original-Received: via spool by 64901-submit@debbugs.gnu.org id=B64901.169054631016958 (code B ref 64901); Fri, 28 Jul 2023 12:12:02 +0000 Original-Received: (at 64901) by debbugs.gnu.org; 28 Jul 2023 12:11:50 +0000 Original-Received: from localhost ([127.0.0.1]:43975 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPMJx-0004PS-KI for submit@debbugs.gnu.org; Fri, 28 Jul 2023 08:11:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPMJv-0004PA-Dz for 64901@debbugs.gnu.org; Fri, 28 Jul 2023 08:11:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPMJp-0007qy-EN; Fri, 28 Jul 2023 08:11:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=86OX02WWxQLy3mODQ3eKodOrInzD9tADR9IutGrC+CM=; b=jy+zs1ighCXk OHAnRn9Y8l2UfDN3nA5U2QszxE7NDeO5MyIcHDqmQME82Qk9ihJ/RWet2QzrBHDFn7uupQinql5H5 h62NxIOs/Z1pnw5tztSZ1eqHwYt4FTw58V7Nxftx3ng2Ur3yYF6iUvS7BD+MHbWLTWYgtqSGiFpx+ Py7hKQSQh/JIOfb9xwuJgU7KJ9ErBUNBMUNOgwSxarowvyo9p8mk6OgtQwmQmdsdKjZDhVCZv+OKM kGfTjHZNHBNweMxE9/UfnkHQ4PYKfwD7bQeeV1zchR9XCwnuquOkKkY+N07h/UjlLlvdQ3TMdrbmL 5cysIuilYNSTVLa8/E1bqg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPMJo-000219-Tr; Fri, 28 Jul 2023 08:11:41 -0400 In-Reply-To: <87wmykfkqk.fsf@epfl.ch> (contovob@tcd.ie) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266262 Archived-At: > From: "Basil L. Contovounesios" > Cc: John Wiegley , 64901@debbugs.gnu.org, david@fiander.info > Date: Fri, 28 Jul 2023 11:28:35 +0200 > > Eli Zaretskii [2023-07-28 09:56 +0300] wrote: > > I'm not John, but macroexpanding the use-package call (specifically the > subexpression that calls the autoloaded bind-keys macro) reveals that it > indeed refers to the bind-key.el variable personal-keybindings. > > My guess is that bind-key.el is loaded as expected for the autoloaded > macro call during interpretation/compilation, but once macroexpanded, > there is nothing left to load bind-key.el at runtime. > > So (require 'bind-key) is currently needed for byte-compiling such > use-package keywords. Thanks. I'd like us to remove that restriction (and the need for the workaround).