Max Nikulin writes: >> More accurate error can be found after setting calendar-debug-sexp to t. >> I got the following backtrace clearly indicating lexical scope issue: >> >> Debugger entered--Lisp error: (void-variable entry) >> (diary-float t 2 1) >> (let ((entry "") (date '(4 5 2022))) (diary-float t 2 1)) >> (eval (let ((entry "") (date '(4 5 2022))) (diary-float t 2 1)) t) > > It looks like the source of the problem with unit tests that I faced > yesterday trying to look closer at the bug with daylight saving time in > agenda. I guess we can permanently bind calendar-debug-sexp to non-nil in tests. It should help if we encounter diary-related issues in future. WDYT?