-
Notifications
You must be signed in to change notification settings - Fork 33
selectrum with use-package (compiler warning) #410
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
Comments
Thanks! You meant during compilation of your init file? I think compiling your init file is generally discouraged, |
I fixed off-on mode issue by removing emacs-desktop and starting from scratch. However, warning is still here |
If you want to keep compiling your init file (I wouldn't recommend it) and want to get rid of the warning you could probably add a |
I disagree ;) If you have heavy macro expansion in your init.el it is worth it. Furthermore I am using a heap dump, at this point it starts to matter. This warning is mostly harmless but can be worked around by defining :function in use-package as far as I know, or use declare-function as @clemera proposed. But I have multiple of these warnings when compiling my init.el and it is not an issue. |
There is one more thing about compilation I think - if you evaluate lambdas the interpreter does not perform a proper lexical closure analysis it seems and creates monster closures. I had this issue when debugging consult--read and evaluating it. The bytecode compiler in contrast gets this right. Therefore the more you compile the better ;) |
I guess it depends how you organize your config, I have to add that I put any "real code" outside the init file and compile those files, too. |
Okay, sure that is a valid approach too. I also straced emacs startup for the fun of it (it is horrible btw) and it only loads the init.elc and nothing else in my case. But my config is more of a mess than yours I think. I rather try to move real code to real packages and avoid creating multiple config-xyz.el files as is very common in many popular configurations. |
I'm using single
This also does not help. I tried to regenerate
|
Thanks, I added the group in e930b10. I missed that because for defcustom specified in the same file as |
Just to throw in my two cents to this discussion, the bulk of my configuration is in a separate file and byte-compiled, and my Here is the code for that: https://github.com/raxod502/radian/blob/193c702c810562c770a0e09d787eb9bd3d93cda2/emacs/init.el#L82-L115 |
Macro expanded to
During compilation I got:
It does not work until I re-active it by off-on mode. I checked that
autoload
is presentThe text was updated successfully, but these errors were encountered: