"N. Jackson" writes: >> This is strange. Was it still "end of file while reading"? > > No. Yes, it was exactly the same error message, but the actual > message is this: > > Warning (emacs): Emacs reader failed to read data in > "/home/nlj/.cache/org-persist/gc-lock.eld". The error was: "End of > file during parsing" > > It comes from the error handler for the condition-case in > org-persist--read-elisp-file. > > (To be absolutely clear, the changes I applied to my Emacs are the > ones I showed in my earlier post[1]. This only applies the atomic > write part of your patches, not the "write index before writing > cache data" part (which I didn't see how to easily integrate into > the org-persist.el in Emacs 30).) Very strange. How can it be if we do atomic writes? Maybe try to install the attached diff that will also display the contents of the file as an additional warning. Maybe it can give us more clues.