changeset 5351:8e1536744d7e

(Fwrite_region): If handler, don't mess with modtime. (Finsert_file_contents): Likewise.
author Richard M. Stallman <rms@gnu.org>
date Sat, 25 Dec 1993 02:17:41 +0000
parents 722bd9d45ab2
children 6b91471d9f0f
files src/fileio.c
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Sat Dec 25 02:13:37 1993 +0000
+++ b/src/fileio.c	Sat Dec 25 02:17:41 1993 +0000
@@ -2411,7 +2411,6 @@
   if (!NILP (handler))
     {
       val = call5 (handler, Qinsert_file_contents, filename, visit, beg, end);
-      st.st_mtime = 0;
       goto handled;
     }
 
@@ -2656,12 +2655,8 @@
       val = call6 (handler, Qwrite_region, start, end,
 		   filename, append, visit);
 
-      /* Do this before reporting IO error
-	 to avoid a "file has changed on disk" warning on
-	 next attempt to save.  */
       if (visiting)
 	{
-	  current_buffer->modtime = 0;
 	  current_buffer->save_modified = MODIFF;
 	  XFASTINT (current_buffer->save_length) = Z - BEG;
 	  current_buffer->filename = visit_file;