XEmacs asks "file changed on disk, really edit?")
Kirill
1998-04-27 Kirill M. Katsnelson <kkm(a)kis.ru>
* fileio.c (Fwrite_file_contents_internal): Prefer stat() over
fstat() back for Windows, where closing a file changes its
modification time.
Index: src/fileio.c
===================================================================
RCS file: /var/cvsroot/ntxemacs/src/fileio.c,v
retrieving revision 1.8
diff --unified=2 -r1.8 fileio.c
--- src/fileio.c 1998/04/27 00:30:31 1.8
+++ src/fileio.c 1998/04/26 20:34:26
@@ -3321,5 +3321,6 @@
/* On VMS and APOLLO, must do the stat after the close
since closing changes the modtime. */
-#if 1 /* !defined (VMS) && !defined (APOLLO) */
+ /* As it does on Windows too - kkm */
+#if !defined (WINDOWSNT) /* !defined (VMS) && !defined (APOLLO) */
fstat (desc, &st);
#endif
@@ -3339,6 +3340,5 @@
}
-
-#if 0 /* defined (VMS) || defined (APOLLO) */
+#if defined (WINDOWSNT) /* defined (VMS) || defined (APOLLO) */
stat ((char *) XSTRING_DATA (fn), &st);
#endif
Show replies by date