Define struct predicate before acccesors
commite4ac4507968b839569b5ce12a9c4d0374dd46768
authorNoam Postavsky <npostavs@gmail.com>
Fri, 2 Dec 2016 05:03:57 +0000 (2 00:03 -0500)
committerNoam Postavsky <npostavs@gmail.com>
Sat, 10 Dec 2016 21:00:01 +0000 (10 16:00 -0500)
tree7f2b67fc7634ac47526dfab963d96c1e81a1ff53
parent08decbd04b8346323b80f0dea84a462fe1f46b3f
Define struct predicate before acccesors

The accessor functions use the predicate function, which causes problems
when reloading after unload-feature: the compiler-macro property is
still present on the predicate symbol, and the compiler fails to find
the definition when trying to inline it into the accessor
function (Bug#25088).

* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Move predicate definition
before field accessor definitions.
lisp/emacs-lisp/cl-macs.el