Don't define gv expanders in compiler's runtime (Bug#27016)
commit79a74568e9166f63a12adb30f54edcd57a6405a3
authorNoam Postavsky <npostavs@gmail.com>
Thu, 13 Jul 2017 04:42:38 +0000 (13 00:42 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Mon, 7 Aug 2017 22:54:49 +0000 (7 18:54 -0400)
treef228a53ad54805030c7bde905604aa4a4d08b816
parentb5c8e9898d9dbd4145c40d08e8eef84a5e32008a
Don't define gv expanders in compiler's runtime (Bug#27016)

This prevents definitions being compiled from leaking into the current
Emacs doing the compilation.
* lisp/emacs-lisp/gv.el (gv-define-expander): Use function-put instead
of `put' with `eval-and-compile'.
* test/lisp/emacs-lisp/gv-tests.el: New tests.
lisp/emacs-lisp/gv.el
test/lisp/emacs-lisp/gv-tests.el [new file with mode: 0644]