On 2022-10-13 04:30, Lars Ingebrigtsen wrote: > Eli Zaretskii writes: > >> Thanks. But this part: >> >> - if (NILP (handler) && !NILP (visit) && current_buffer->modtime.tv_nsec < 0) >> + if (save_errno != 0) >> >> might cause us signal an error when VISIT is nil, something that >> didn't happen before. We should be OK there. If VISIT is nil, SAVE_ERRNO must be zero. >> (I also am not sure it is 100% reliable to rely on save_errno being >> non-zero whenever we encounter an error, especially in the >> file-handlers case.) Should be OK here too. In the file-handlers case, SAVE_ERRNO is zero. I installed the attached to help document and check this.