]> git.eshelyaron.com Git - emacs.git/commit
insert-file-contents seek refactoring
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 18 Jul 2025 20:56:53 +0000 (13:56 -0700)
committerEshel Yaron <me@eshelyaron.com>
Fri, 25 Jul 2025 08:11:34 +0000 (10:11 +0200)
commit2b8e0bc7dd6a5c2943549239272dc10e3217e6a0
tree606681e66654be762a02c60cdc03a7acbc26595e
parent9a3c35203fc2435e1a73fa0f5b8861d9ff1008de
insert-file-contents seek refactoring

* src/fileio.c (xlseek): New function.
(Finsert_file_contents): Use it instead of doing things by hand.
(write_region): Match diagnostic wording to xlseek’s.

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