Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put functions in scope in the :config block #1059

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jyp
Copy link

@jyp jyp commented Jul 20, 2023

This fixes #1032, which also provides background.

With this change, use-package p puts in scope all the symbols declared by package p in scope of its :config block. The tradeoff is that init is slightly slower if interpreted. Compiling init.el gives the same runtime behavior as previously.

Perhaps there is a way to change use-package--eval-when-compile to obtain both fewer warnings at compile time and best runtime complexity, but this is beyond my elisp understanding.

With this change, `use-package p` puts in scope all the symbols
declared by package p in scope of its :config block. The tradeoff is
that init is slightly slower *if interpreted*. Compiling init.el gives
the same runtime behaviour as previously.

Fixes jwiegley#1032
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Byte compilation warning "the function ‘js2-imenu-extras-setup’ might not be defined at runtime."
1 participant