On 05/04/2022 18:22, Ihor Radchenko wrote:
Christian Stuermer writes:
And the problem is gone, after reverting
(result (if calendar-debug-sexp (eval sexp t)
(condition-case nil
(eval sexp t)
back to
(result (if calendar-debug-sexp (eval sexp)
(condition-case nil
(eval sexp)
in org-diary-sexp-entry in org.el.
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.
Bad sexp at line 25 in /home/ubuntu/src/org-mode/testing/examples
/agenda-file.org: (let ((entry ) (date '(3 25 2022))) (diary-date 3 25
2022))
((should
(= 3
(count-lines ... ...)))
:form
FAILED 255/900 test-org-agenda/property-timestamp (2.018120 sec)
Emacs-27.3