mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-29 02:02:50 -07:00
Remove `error-data` from the new error API: it is not really compatible with a more abstract view of error descriptors, and in practice it seems to be used only in two ways (both of them rare): - To add some contextual info to an error. We should maybe add a dedicated support for that, but it's not clear what shape it should take, ideally (there was a discussion about with Alan and myself in emacs-devel a few years ago). - To do some other massaging whose correctness is dubious anyway. * doc/lispref/control.texi (Handling Errors): Remove `error-data`. * lisp/epa-file.el (epa-file--find-file-not-found-function): Don't use `error-data`. (epa-file--error-add-context): New function, extracted from `epa-file-insert-file-contents`. (epa-file-insert-file-contents): Use it instead of `error-data`. * lisp/subr.el (error-data): Delete function. |
||
|---|---|---|
| .. | ||
| emacs | ||
| lispintro | ||
| lispref | ||
| man | ||
| misc | ||
| translations | ||