]> git.eshelyaron.com Git - emacs.git/commit
track-changes.el: Improve error tracing to help debugging
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 3 Oct 2024 18:32:09 +0000 (14:32 -0400)
committerEshel Yaron <me@eshelyaron.com>
Fri, 4 Oct 2024 10:11:24 +0000 (12:11 +0200)
commit8088dea0c2895549c1347a9719039116ea7c8b42
tree4488bfc69d04ba1f6c7d4f7327d0dd4e83832274
parent78ad1d83e0b6ad879535c85f1e1d838e7f84ad5d
track-changes.el: Improve error tracing to help debugging

Add a new `trace` setting for `track-changes-record-errors` to
record more information in order to try and help find the root
cause of errors.

* lisp/emacs-lisp/track-changes.el (track-changes--trace): New var.
(track-changes-record-errors): Document new `trace` setting.
(track-change--backtrace, track-changes--trace): New functions.
(track-changes--recover-from-error): Use them.
(track-changes--error-log): Document new format.
(track-changes-register, track-changes-unregister)
(track-changes-fetch, track-changes--before, track-changes--after):
Call `track-changes--trace`.

(cherry picked from commit ef587bf6b46b2ea3ef91b260ac2542666081260d)
lisp/emacs-lisp/track-changes.el