]> git.eshelyaron.com Git - emacs.git/commit
insert-file-contents from seekable non-regular
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 20 Jul 2025 15:59:16 +0000 (08:59 -0700)
committerEshel Yaron <me@eshelyaron.com>
Fri, 25 Jul 2025 08:11:39 +0000 (10:11 +0200)
commit557980512d3b4b73b5bad237d50e11de67fcf3e0
treefd90ad22bb60137d4f5b4d2a8766513db184762f
parente74c2a4a8a68418030565f85fafd4c9bab68199e
insert-file-contents from seekable non-regular

* src/fileio.c (Finsert_file_contents): Be more conservative
when reading from seekable non-regular files when END is given.
The code assumed that in this case, reads would succeed or fail
quickly so there was no need to call internal_condition_case_1.
However, in some cases, e.g., /dev/random, it could take a while.
This fixes a glitch introduced in commit
cb4579ed6ba45c81ee7ec627bf197e1def121f24 dated 2022-06-11.

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