summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-07-20 20:47:20 +0000
committerRichard M. Stallman <rms@gnu.org>1995-07-20 20:47:20 +0000
commitab6c5c0c36488f1cf8c42f24325a5829bcdaaed5 (patch)
tree67d54708691ce926843ca72b5b2fd2468467c1b6
parent2d475b5f1e6fc527cc6d0583faf7e237fcb7fb51 (diff)
downloademacs-ab6c5c0c36488f1cf8c42f24325a5829bcdaaed5.tar.gz
(prepare_to_modify_buffer): Don't lock the file
if current_buffer->filename is nil.
-rw-r--r--src/insdel.c2
1 files changed, 2 insertions, 0 deletions
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