--text follows this line-- I'm just reporting this in case it is still useful since it asked nicely.
Mark Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ The error was: (wrong-type-argument integer-or-marker-p nil) Backtrace: " backtrace-to-string(nil) org-element-at-point() org-remove-empty-drawer-at(1697198) #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_59>() org-map-tree(#<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_59>) org-clock-remove-empty-clock-drawer() org-clock-out(nil) funcall-interactively(org-clock-out nil) command-execute(org-clock-out) " Please report this to Org mode mailing list (M-x org-submit-bug-report). Emacs : GNU Emacs 31.0.50 (build 1, x86_64-apple-darwin24.3.0, NS appkit-2575.40 Version 15.3 (Build 24D60)) of 2025-03-10 Package: Org mode version 9.7.11 (release_9.7.11 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)