* src/fileio.c (Finsert_file_contents): Restore logic of
non-regular but seekable files. (Bug#65156)
goto handled;
}
- if (seekable || !NILP (end))
+ if ((seekable && regular) || !NILP (end))
total = end_offset - beg_offset;
else
/* For a special file, all we can do is guess. */
For a special file, where TOTAL is just a buffer size,
so don't bother counting in HOW_MUCH.
(INSERTED is where we count the number of characters inserted.) */
- if (seekable || !NILP (end))
+ if ((seekable && regular) || !NILP (end))
how_much += this;
inserted += this;
}