diff options
| author | Eli Zaretskii | 2025-01-19 14:20:18 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2025-01-19 14:20:18 +0200 |
| commit | f367b01f128223d3fc7c34985eccce744333fa8f (patch) | |
| tree | 13b45fd10eca69cf2db130e01bc4994fa08db1ad /src | |
| parent | 26c9fbc94dae34fc119828661c71242d80bb33c5 (diff) | |
| download | emacs-f367b01f128223d3fc7c34985eccce744333fa8f.tar.gz emacs-f367b01f128223d3fc7c34985eccce744333fa8f.zip | |
* src/fileio.c (Finsert_file_contents): Fix last change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c index bf80d71ab59..9ab17497395 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -4754,6 +4754,11 @@ by calling `format-decode', which see. */) | |||
| 4754 | /* For a special file that is not seekable, all we can do is guess. */ | 4754 | /* For a special file that is not seekable, all we can do is guess. */ |
| 4755 | total = READ_BUF_SIZE; | 4755 | total = READ_BUF_SIZE; |
| 4756 | 4756 | ||
| 4757 | /* From here on, treat a file with zero size as not seekable. This | ||
| 4758 | causes us to read until we actually hit EOF. */ | ||
| 4759 | if (regular && st.st_size == 0) | ||
| 4760 | seekable = false; | ||
| 4761 | |||
| 4757 | if (NILP (visit) && total > 0) | 4762 | if (NILP (visit) && total > 0) |
| 4758 | { | 4763 | { |
| 4759 | if (!NILP (BVAR (current_buffer, file_truename)) | 4764 | if (!NILP (BVAR (current_buffer, file_truename)) |