Gregor Zattler <[email protected]> writes: > I get this consistently, when clocking > in the very same task, since I upgraded > from Debian bookworm to trixie and in > the process also rebuilt Emacs and the > latest org-mode.
Thanks, and sorry for the late reply. The data did help. Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=1a05c538e The culprit was indeed parsing :pre-blank inside drawers: ■ Warning (org-element): org-element--cache: Warning(xxx.org): (org-clock-in) Cached element is incorrect in xxx.org. (Cache tic up to date: "yes") Resetting. If this warning appears regularly, please report the warning text to Org mode mailing list (M-x org-submit-bug-report). The element is: "(drawer (:standard-properties [764 764 774 12041 12047 0 nil nil element t (0 . 764) nil nil nil #<buffer xxx.org> nil nil (section (:standard-properties [692 692 692 12047 12047 0 nil section element t nil 692 12047 nil #<buffer xxx.org> nil nil ...] :fragile-cache nil))] :pre-blank 0 :drawer-name \"LOGBOOK\" :fragile-cache nil))" The real element is: "(drawer (:standard-properties [764 764 775 12041 12047 0 nil nil element nil nil nil nil nil #<buffer xxx.org> nil nil (section (:standard-properties [692 692 692 12047 12047 0 nil section element nil nil 692 12047 nil #<buffer xxx.org> nil nil ...]))] :pre-blank 1 :drawer-name \"LOGBOOK\"))" org-element-cache diagnostics(xxx.org): Shifting end positions of robust parent (warning nil): "(drawer (:standard-properties [764 764 774 12041 12047 0 nil nil element t nil nil nil nil #<buffer xxx.org> nil nil (section (:standard-properties [692 692 692 12046 12046 0 nil section element t nil 692 12046 nil #<buffer xxx.org> nil nil ...]))] :pre-blank 0 :drawer-name \"LOGBOOK\" :fragile-cache nil))" org-element-cache diagnostics(xxx.org): Adding new phase 0 request org-element-cache diagnostics(xxx.org): Submitting new synchronization request for [774..774]𝝙1 org-element-cache diagnostics(xxx.org): Added new element with nil key: "(drawer (:standard-properties [764 764 774 12040 12046 0 nil nil element nil nil nil nil nil #<buffer xxx.org> nil nil nil] :pre-blank 0 :drawer-name \"LOGBOOK\"))" The error is in :contents-begin. We have an edit at 774 (right at the old :contents-begin of the logbook drawer), most likely inserting a newline like :LOGBOOK: <inserted newline> CLOCK: [2025-10-19 Sun 12:09] :END: Before: contents-begin is right at CLOCK, :pre-blank = 0 After: contents-begin is still at CLOCK, :pre-blank = 1 That's a change that requires a re-parse (changed :pre-blank property), but was not captured. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
