]> git.eshelyaron.com Git - emacs.git/commit
lisp/emacs-lisp/fcr.el: Signal errors for invalid code
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 21 Dec 2021 14:57:34 +0000 (09:57 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 21 Dec 2021 14:57:34 +0000 (09:57 -0500)
commit0d45186882cec71dc687e76fef624ef8d6976358
treefa88564f89d7ff25f84c11c906ffc3e619c5534e
parent98a518b5324dbaff492cdf80261f2c60e89e25c6
lisp/emacs-lisp/fcr.el: Signal errors for invalid code

* test/lisp/emacs-lisp/fcr-tests.el (fcr-tests): Remove left-over
debugging messages.
(fcr-tests--limits): New test.

* lisp/emacs-lisp/fcr.el (fcr-defstruct): Fill the `index-table` and
signal an error in case of duplicate slot names.
(fcr-lambda): Change use of `fcr--fix-type` so `cconv-convert` can use
it to detect store-converted slots.  Tweak generated code to avoid
a warning.
(fcr--fix-type): Adjust accordingly.

* lisp/emacs-lisp/cconv.el (cconv-convert): Signal an error if we
store-convert a FCR slot.
lisp/emacs-lisp/cconv.el
lisp/emacs-lisp/fcr.el
test/lisp/emacs-lisp/cconv-tests.el
test/lisp/emacs-lisp/fcr-tests.el