[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sun, 18 Jul 2004 20:40:36 -0500 (CDT)
if (stat (SDATA (filename), &st) < 0)
/* If the file doesn't exist now and didn't exist before,
we say that it isn't modified, provided the error is a tame one. */
if (errno == ENOENT || errno == EACCES || errno == ENOTDIR)
st.st_mtime = -1;
st.st_mtime = 0;
If the buffer has stored (via the value -1) that the file does not
exist and the file does not exist on disk either, then the buffer's
record agrees with the actual situation on disk. I do not know which
"untame" errors one had in mind here where
`verify-visited-file-modtime' should return nil in this situation.
Is it good enough if a handler just returns `t' in this situation
without worrying about this?
Luc Teirlinck <=