]> git.eshelyaron.com Git - emacs.git/commit
fcr.el (fcr-defstruct): Use `fcr--copy` to define accessors
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 22 Dec 2021 15:52:21 +0000 (10:52 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 22 Dec 2021 15:52:21 +0000 (10:52 -0500)
commiteed3450af0a0892db67409b073203c9f1454354a
treeab9e648fa25246d3b8a6b48c629687549740fe46
parent59f542ef4fb04bc829f5af1728070a1a22c4fd55
fcr.el (fcr-defstruct): Use `fcr--copy` to define accessors

* lisp/emacs-lisp/fcr.el (fcr-defstruct): Use `fcr--copy` to
define accessors.  Fix call to `fcr--defstruct-make-copiers`.
(fcr--lambda): New macro extracted from `fcr-lambda`.
(fcr-lambda): Use it.
(fcr--accessor-prototype): New constant.
(fcr-accessor): New type.
lisp/emacs-lisp/fcr.el