diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2022-10-28 11:33:24 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2022-10-28 11:33:24 -0400 |
commit | d79cdcd4ff6687c2f0dcfde83ba36732408e52e8 (patch) | |
tree | 570e8832ca29ba5f8e6db49cd0b9b9acaf831011 /test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-custom-declare-variable.el | |
parent | de5a3fa1e529810f30d461d6682762c9c5e564a4 (diff) | |
download | emacs-d79cdcd4ff6687c2f0dcfde83ba36732408e52e8.tar.gz emacs-d79cdcd4ff6687c2f0dcfde83ba36732408e52e8.tar.bz2 emacs-d79cdcd4ff6687c2f0dcfde83ba36732408e52e8.zip |
cconv.el: Fix regression in cconv-tests-interactive-closure-bug51695
The new code to make interpreted closures safe-for-space introduced
a regression in `cconv-tests-interactive-closure-bug51695`, only seen
when using TEST_LOAD_EL.
A few other issues were found and fixed along the way.
* lisp/emacs-lisp/cconv.el (cconv-fv): Change calling convention and
focus on finding the free variables.
(cconv-make-interpreted-closure): New function.
* lisp/loadup.el: Use `compiled-function-p` rather than
`byte-code-function-p` so we also use safe-for-space interpreted
closures when we build with native compilation.
(internal-make-interpreted-closure-function):
Use `cconv-make-interpreted-closure`.
* src/eval.c (syms_of_eval): Rename `internal-filter-closure-env-function`
to `internal-make-interpreted-closure-function`.
(Ffunction): Let that new var build the actual closure.
* test/lisp/emacs-lisp/cconv-tests.el
(cconv-tests-interactive-closure-bug51695): Test specifically the
interpreted case.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-custom-declare-variable.el')
0 files changed, 0 insertions, 0 deletions