emacs-bind-map icon indicating copy to clipboard operation
emacs-bind-map copied to clipboard

Fix emacs native compilation warning

Open sdwolfz opened this issue 3 years ago • 0 comments
trafficstars

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.

sdwolfz avatar Sep 09 '22 06:09 sdwolfz