Commit f173b650 authored by Richard M. Stallman's avatar Richard M. Stallman

(prepare_to_modify_buffer): Use file_truename for locking.

parent d0b490f5
......@@ -706,9 +706,9 @@ prepare_to_modify_buffer (start, end)
verify_interval_modification (current_buffer, start, end);
#ifdef CLASH_DETECTION
if (!NILP (current_buffer->filename)
if (!NILP (current_buffer->file_truename)
&& SAVE_MODIFF >= MODIFF)
lock_file (current_buffer->filename);
lock_file (current_buffer->file_truename);
#else
/* At least warn if this file has changed on disk since it was visited. */
if (!NILP (current_buffer->filename)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment