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

Fix emacs native compilation warning #8

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

Conversation

sdwolfz
Copy link

@sdwolfz sdwolfz commented Sep 9, 2022

Warning (comp): bind-map.el:138:40: Warning: Alias for
‘bind-map-evil-local-bindings’ should be declared before its referent

Apparently you're supposed to define the obsolete alias before the actual variable. I've seen it used this way in the emacs codebase and in other packages.

To reproduce, have emacs build with native compilation and notice the compilation logs. You can then open this file and run M-x emacs-lisp-native-compile-and-load before and after the changes to see the warning is removed.

```
Warning (comp): bind-map.el:138:40: Warning: Alias for
‘bind-map-evil-local-bindings’ should be declared before its referent
```

Apparently you're supposed to define the obsolete alias before the
actual variable. I've seen it used this way in the emacs codebase and in
other packages.
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.

1 participant