]> git.eshelyaron.com Git - emacs.git/commit
Fix insert-file-contents optimization glitch
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 18 Jul 2025 06:00:38 +0000 (23:00 -0700)
committerEshel Yaron <me@eshelyaron.com>
Fri, 25 Jul 2025 08:11:33 +0000 (10:11 +0200)
commit9a3c35203fc2435e1a73fa0f5b8861d9ff1008de
tree00f363a5641f19a13d8c0d983a23567b308dc09b
parentbf3ef2a3516d7e4ab3a36045e89b264d4a98c14b
Fix insert-file-contents optimization glitch

This improves on recent fixes to Bug#77315.
* src/fileio.c (Finsert_file_contents): When optimizing
do not seek to 0 if the initial file offset is positive,
as that causes the optimized code to behave differently
from the nonoptimized.

(cherry picked from commit 5f4b71b0c4872b6bd9f8b4ced9f4715062db1bad)
src/fileio.c