1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 11:00:45 -08:00
emacs/doc
Stefan Monnier 5ba75e183c New special form handler-bind
AFAIK, this provides the same semantics as Common Lisp's `handler-bind`,
modulo the differences about how error objects and conditions are
represented.

* lisp/subr.el (handler-bind): New macro.

* src/eval.c (pop_handler): New function.
(Fhandler_Bind_1): New function.
(signal_or_quit): Handle new handlertypes `HANDLER` and `SKIP_CONDITIONS`.
(find_handler_clause): Simplify.
(syms_of_eval): Defsubr `Fhandler_bind_1`.

* doc/lispref/control.texi (Handling Errors): Add `handler-bind`.

* test/src/eval-tests.el (eval-tests--handler-bind): New test.

* lisp/emacs-lisp/lisp-mode.el (lisp-font-lock-keywords):
Move 'handler-bind' from CL-only to generic Lisp.
(handler-bind): Remove indentation setting, it now lives in the macro
definition.
2024-01-04 16:32:53 -05:00
..
emacs ; Fix documentation of last change 2024-01-04 20:47:06 +02:00
lang/fr/misc ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
lispintro ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
lispref New special form handler-bind 2024-01-04 16:32:53 -05:00
man Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
misc Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00