From: Richard M. Stallman Date: Thu, 20 Jul 1995 20:47:20 +0000 (+0000) Subject: (prepare_to_modify_buffer): Don't lock the file X-Git-Tag: emacs-19.34~3238 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ab6c5c0c36488f1cf8c42f24325a5829bcdaaed5;p=emacs.git (prepare_to_modify_buffer): Don't lock the file if current_buffer->filename is nil. --- 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