diff options
| author | Richard M. Stallman | 1995-07-20 20:47:20 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-07-20 20:47:20 +0000 |
| commit | ab6c5c0c36488f1cf8c42f24325a5829bcdaaed5 (patch) | |
| tree | 67d54708691ce926843ca72b5b2fd2468467c1b6 /src | |
| parent | 2d475b5f1e6fc527cc6d0583faf7e237fcb7fb51 (diff) | |
| download | emacs-ab6c5c0c36488f1cf8c42f24325a5829bcdaaed5.tar.gz emacs-ab6c5c0c36488f1cf8c42f24325a5829bcdaaed5.zip | |
(prepare_to_modify_buffer): Don't lock the file
if current_buffer->filename is nil.
Diffstat (limited to 'src')
| -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) | |||
| 713 | 713 | ||
| 714 | #ifdef CLASH_DETECTION | 714 | #ifdef CLASH_DETECTION |
| 715 | if (!NILP (current_buffer->file_truename) | 715 | if (!NILP (current_buffer->file_truename) |
| 716 | /* Make binding buffer-file-name to nil effective. */ | ||
| 717 | && !NILP (current_buffer->filename) | ||
| 716 | && SAVE_MODIFF >= MODIFF) | 718 | && SAVE_MODIFF >= MODIFF) |
| 717 | lock_file (current_buffer->file_truename); | 719 | lock_file (current_buffer->file_truename); |
| 718 | #else | 720 | #else |