Commit 1c343051 authored by Karl Heuer's avatar Karl Heuer
Browse files

(unlock_all_files): Don't call unlock_file;

do the work directly, and avoid calling Fexpand_file_name.
parent abb4c08f
......@@ -385,7 +385,14 @@ unlock_all_files ()
{
b = XBUFFER (XCONS (XCONS (tail)->car)->cdr);
if (STRINGP (b->file_truename) && BUF_SAVE_MODIFF (b) < BUF_MODIFF (b))
unlock_file (b->file_truename);
{
register char *lfname;
MAKE_LOCK_NAME (lfname, b->file_truename);
if (current_lock_owner (0, lfname) == 2)
unlink (lfname);
}
}
}
......
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