Subject: Re: bug#75209: 30.0.93; Emacs reader failed to read data in "/home/nlj/.cache/org-persist/gc-lock.eld"

From: Eli Zaretskii <[email-masked]>
Date: Fri, 14 Feb 2025 17:12:48 +0200

> From: "N. Jackson" <[email-masked]>
> Cc: Eli Zaretskii <[email-masked]>,  [email-masked]
> Date: Fri, 14 Feb 2025 14:02:55 +0000
> 
> Maybe(?) if insert-file-contents reads the file in chunks and if one
> instance of Emacs runs org-persist--write-elisp-file at the same
> time as the other instance if running org-persist--read-elisp-file,
> perhaps the file could be replaced in the middle of the read.  Then
> maybe chunks could be read in from both the old and the new files?

Emacs reads files in chunks of 16KB.  Is the file in question likely
to be larger than that?