bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#64901: 29.1; use-package fails to require bind-key at runtime in com


From: Basil L. Contovounesios
Subject: bug#64901: 29.1; use-package fails to require bind-key at runtime in compiled files
Date: Fri, 28 Jul 2023 18:55:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Eli Zaretskii [2023-07-28 15:12 +0300] wrote:

>> From: "Basil L. Contovounesios" <contovob@tcd.ie>
>> Cc: John Wiegley <johnw@gnu.org>,  64901@debbugs.gnu.org,  david@fiander.info
>> Date: Fri, 28 Jul 2023 11:28:35 +0200
>> 
>> So (require 'bind-key) is currently needed for byte-compiling such
>> use-package keywords.
>
> I'd like us to remove that restriction (and the need for the
> workaround).

It looks like a pretty pervasive restriction in bind-key.el: all of its
autoloads are macros, and all of them expand to reference non-autoloaded
bind-key.el definitions.  E.g. try byte-compiling (unbind-key "💥").

So I think the library was designed to be used with (require 'bind-key).

Of course, I think it would be better to lift that restriction, so that
the library's autoloads are not redundant.  But maybe John or a user of
bind-key.el should chime in.

-- 
Basil





reply via email to

[Prev in Thread] Current Thread [Next in Thread]