From ab6c5c0c36488f1cf8c42f24325a5829bcdaaed5 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 20 Jul 1995 20:47:20 +0000 Subject: [PATCH] (prepare_to_modify_buffer): Don't lock the file if current_buffer->filename is nil. --- src/insdel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/insdel.c b/src/insdel.c index 983e14eb7fb..c6ff136602c 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -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 -- 2.39.2