]> git.eshelyaron.com Git - emacs.git/commit
* lisp/kmacro.el: Use OClosure instead of messing with internals
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 13 Dec 2021 21:43:58 +0000 (16:43 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 13 Dec 2021 21:43:58 +0000 (16:43 -0500)
commite052bb2770f392e3c47723ef2673078cb6e1a3e7
tree121b38e7a558ae6ab751959ee6a9ed3a1a14a220
parentf11349ed20c05fbe97db219eecfae0059d7ee4c0
* lisp/kmacro.el: Use OClosure instead of messing with internals

* test/lisp/progmodes/elisp-mode-tests.el
(xref-elisp-generic-co-located-default): Silence warnings.

* test/lisp/kmacro-tests.el (kmacro-tests--cl-print): New test.

* lisp/kmacro.el (kmacro-function): New OClosure type.
(kmacro-lambda-form): Use it.
(kmacro-extract-lambda, kmacro-p): Simplify/rewrite accordingly.
(cl-print-object): New method.

* lisp/emacs-lisp/oclosure.el (oclosure-make): Keep interactive specs before the
function's code.

* lisp/edmacro.el (edmacro-finish-edit): Prefer `kmacro-p`.
lisp/edmacro.el
lisp/emacs-lisp/oclosure.el
lisp/kmacro.el
test/lisp/kmacro-tests.el
test/lisp/progmodes/elisp-mode-tests.el