diff options
| author | Richard M. Stallman <rms@gnu.org> | 1995-07-20 20:47:20 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 1995-07-20 20:47:20 +0000 |
| commit | ab6c5c0c36488f1cf8c42f24325a5829bcdaaed5 (patch) | |
| tree | 67d54708691ce926843ca72b5b2fd2468467c1b6 | |
| parent | 2d475b5f1e6fc527cc6d0583faf7e237fcb7fb51 (diff) | |
| download | emacs-ab6c5c0c36488f1cf8c42f24325a5829bcdaaed5.tar.gz | |
(prepare_to_modify_buffer): Don't lock the file
if current_buffer->filename is nil.
| -rw-r--r-- | src/insdel.c | 2 |
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 |
