History of 2024-12-23 Watching variable changes

2024-12-23
15:48 UTC Revision 1 . . . . mborkToday I have a short Elisp trick, probably slightly more interesting than useful, but still. A long time ago I wrote about some debugging capabilities of Emacs Lisp. The feature mentioned in the last of these posts, debug-on-variable-change, allows to invoke the debugger whenever some Elisp code changes the value of a variable (with a few minor limitations). What I didn’t mention then is that you can actually do things other than start the Emacs debugger when a variable’s value changes.