1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-17 04:12:44 -07:00
emacs/doc
Stefan Monnier a1358530f5 Improve the error API
Define new functions to manipulate error descriptors and
add support for `signal` to *re*signal a previous error.

 * src/eval.c (Fsignal): Make the second arg optional and document
the possibility of passing a whole error descriptor to re-signal it.
(signal_or_quit): Fix a few corner case issues when
DATA is `nil` and ERROR_SYMBOL is an error descriptor.

* lisp/subr.el (error-type-p, error--p, error-type, error-data)
(error-has-type-p, error-slot-value): New function.

* doc/lispref/control.texi (Handling Errors): Prefer "error descriptor"
to "error description".  Use the new single-arg call to `signal` to
re-throw an error.
Document `error-type`, `error-data` and `error-slot-value`.
(Error Symbols): Document the new functions `error-type-p` and
`error-has-type-p`.
2026-03-10 10:48:10 -04:00
..
emacs ; * doc/emacs/vc1-xtra.texi (General VC Options): Fix a typo. 2026-03-05 19:43:16 +02:00
lispintro ; * doc/lispintro/emacs-lisp-intro.texi (Lists diagrammed): Fix last change. 2026-03-08 14:57:34 +02:00
lispref Improve the error API 2026-03-10 10:48:10 -04:00
man ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
misc ; Fix indexing in viper.texi. 2026-03-05 15:17:50 +02:00
translations ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00