]> git.eshelyaron.com Git - emacs.git/commit
insert-file-contents file size hint improvement
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Jul 2025 23:03:29 +0000 (16:03 -0700)
committerEshel Yaron <me@eshelyaron.com>
Thu, 24 Jul 2025 08:48:49 +0000 (10:48 +0200)
commit2dd47c404208ed43a044e87843543ab35d32657e
tree5d0ed05c30e0d02f61e4bd89ea28756e692e0cf3
parentfe763ca0c1a55316ba7f9f25ad2e0a242c487d41
insert-file-contents file size hint improvement

* src/fileio.c (Finsert_file_contents): When reading yields 0,
update the file size hint to match.  This should improve its
accuracy.

(cherry picked from commit de0bb2e059f1c404ca328509f3eb90cdf90256c5)
src/fileio.c