]> git.eshelyaron.com Git - emacs.git/commit
Rework printing of module functions
authorPhilipp Stephani <phst@google.com>
Sun, 4 Jun 2017 16:57:51 +0000 (18:57 +0200)
committerPhilipp Stephani <phst@google.com>
Sun, 4 Jun 2017 17:50:49 +0000 (19:50 +0200)
commit3b0080de52db1756fc47f1642ee9980655421af9
tree5d2a765a0ef67144461de82fbc4043a9cb5de378
parent18396997b30c053a905c9a509777625ccc01c3d5
Rework printing of module functions

Fix a FIXME in emacs-module.c.  Put the printing into print.c, like
other types.

* src/print.c (print_vectorlike): Add code to print module functions.

* src/emacs-module.c (funcall_module): Stop calling
'module_format_fun_env'.  Now that module functions are first-class
objects, they can be added to signal data directly.
(module_handle_signal): Remove now-unused function
'module_format_fun_env'.

* test/src/emacs-module-tests.el (mod-test-sum-test): Adapt unit test.

* src/eval.c (funcall_lambda): Adapt call to changed signature of
'funcall_module'.
src/emacs-module.c
src/eval.c
src/lisp.h
src/print.c
test/src/emacs-module-tests.el