]> git.eshelyaron.com Git - emacs.git/commitdiff
(prepare_to_modify_buffer): Don't lock the file
authorRichard M. Stallman <rms@gnu.org>
Thu, 20 Jul 1995 20:47:20 +0000 (20:47 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 20 Jul 1995 20:47:20 +0000 (20:47 +0000)
if current_buffer->filename is nil.

src/insdel.c

index 983e14eb7fbecec2095a21ee5e9efdc9166bb1c9..c6ff136602c0f4bb1138cdd5658bb1e85ad6f8f5 100644 (file)
@@ -713,6 +713,8 @@ prepare_to_modify_buffer (start, end)
 
 #ifdef CLASH_DETECTION
   if (!NILP (current_buffer->file_truename)
+      /* Make binding buffer-file-name to nil effective.  */
+      && !NILP (current_buffer->filename)
       && SAVE_MODIFF >= MODIFF)
     lock_file (current_buffer->file_truename);
 #else