diff options
| author | Richard M. Stallman | 1995-05-02 18:13:47 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-05-02 18:13:47 +0000 |
| commit | f173b6507b52f16ed0d08938ccc899297305c090 (patch) | |
| tree | 2753f12fb14b4948447edbd60a83326ff380d30c /src | |
| parent | d0b490f571ad2441f68c21e2bc3ad2e799ca1438 (diff) | |
| download | emacs-f173b6507b52f16ed0d08938ccc899297305c090.tar.gz emacs-f173b6507b52f16ed0d08938ccc899297305c090.zip | |
(prepare_to_modify_buffer): Use file_truename for locking.
Diffstat (limited to 'src')
| -rw-r--r-- | src/insdel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/insdel.c b/src/insdel.c index 449bfc58b31..bf4a7e74f01 100644 --- a/src/insdel.c +++ b/src/insdel.c | |||
| @@ -706,9 +706,9 @@ prepare_to_modify_buffer (start, end) | |||
| 706 | verify_interval_modification (current_buffer, start, end); | 706 | verify_interval_modification (current_buffer, start, end); |
| 707 | 707 | ||
| 708 | #ifdef CLASH_DETECTION | 708 | #ifdef CLASH_DETECTION |
| 709 | if (!NILP (current_buffer->filename) | 709 | if (!NILP (current_buffer->file_truename) |
| 710 | && SAVE_MODIFF >= MODIFF) | 710 | && SAVE_MODIFF >= MODIFF) |
| 711 | lock_file (current_buffer->filename); | 711 | lock_file (current_buffer->file_truename); |
| 712 | #else | 712 | #else |
| 713 | /* At least warn if this file has changed on disk since it was visited. */ | 713 | /* At least warn if this file has changed on disk since it was visited. */ |
| 714 | if (!NILP (current_buffer->filename) | 714 | if (!NILP (current_buffer->filename) |