]> git.eshelyaron.com Git - emacs.git/commit
Byte compiler: fix spurious warnings "might not be defined at runtime". fix/not-defined-at-runtime
authorAlan Mackenzie <acm@muc.de>
Sat, 21 Nov 2015 18:43:57 +0000 (18:43 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 21 Nov 2015 18:43:57 +0000 (18:43 +0000)
commitab4df9ce7d57bb391e56ddd5feee3d227bfce76d
tree178b46b507e0abfda1913f88c749fea48d725398
parentd696d62fea48096680d6d511a71c4df56d00a51f
Byte compiler: fix spurious warnings "might not be defined at runtime".

Also initialize byte-compile-noruntime-functions between runs.

bytecomp.el (byte-compile-new-defuns): New variable.
(byte-compile-initial-macro-environment): For eval-when-compile: bind
byte-compile-unresolved-functions and byte-compile-new-defuns around
byte-compile-top-level, to prevent spurious entries being made.
(byte-compile-warn-about-unresolved-functions): Check whether function is in
byte-compile-new-defuns before emitting a warning about it.
(byte-compile-from-buffer): Initialize new variable and
byte-compile-noruntime-functions to nil.
(byte-compile-file-form-require): record all new functions defined by a
`require' in byte-compile-new-defuns.
(byte-compile-file-form-defmumble): record the new alias in
byte-compile-new-defuns.
lisp/emacs-lisp/bytecomp.el