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: John Wiegley
Subject: bug#64901: 29.1; use-package fails to require bind-key at runtime in compiled files
Date: Fri, 28 Jul 2023 10:37:48 -0700
User-agent: Cyrus-JMAP/3.9.0-alpha0-592-ga9d4a09b4b-fm-defalarms-20230725.001-ga9d4a09b

I have no further notes to add, but I would like to see that restriction lifted 
also.

John

On Fri, Jul 28, 2023, at 9:55 AM, Basil L. Contovounesios wrote:
> 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]