diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2021-04-07 11:31:07 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2021-04-15 15:41:13 +0200 |
commit | 7893945cc8f9421d0be5b07b9ed404bdf25ce140 (patch) | |
tree | 1e3740a75827ed18c542f41b88ca9013120b3920 /test/lisp/emacs-lisp/bytecomp-resources/warn-save-excursion.el | |
parent | 31f8ae53beb9bada58750160c1bf7f867ecd442e (diff) | |
download | emacs-7893945cc8f9421d0be5b07b9ed404bdf25ce140.tar.gz emacs-7893945cc8f9421d0be5b07b9ed404bdf25ce140.tar.bz2 emacs-7893945cc8f9421d0be5b07b9ed404bdf25ce140.zip |
Add condition-case success handler (bug#47677)
Allow a condition-case handler on the form (:success BODY) to be
specified as the success continuation of the protected form, with
the specified variable bound to its result.
* src/eval.c (Fcondition_case): Update the doc string.
(internal_lisp_condition_case): Implement in interpreter.
(syms_of_eval): Defsym :success.
* lisp/emacs-lisp/bytecomp.el (byte-compile-condition-case):
Implement in byte-compiler.
* lisp/emacs-lisp/cl-macs.el (cl--self-tco): Allow self-TCO
from success handler.
* doc/lispref/control.texi (Handling Errors): Update manual.
* etc/NEWS: Announce.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases)
(bytecomp-condition-case-success):
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs--labels):
Add test cases.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-resources/warn-save-excursion.el')
0 files changed, 0 insertions, 0 deletions