# HG changeset patch # User Gerd Moellmann # Date 972420870 0 # Node ID ee1e731661c69ee40c1bf82acdfb69b079efd1cc # Parent 1ce7dce8710b00a7f61513043ffb63107ecbe55b (unlock_all_files): Use unlock_file to expand each buffer's file_truename before trying remove its lock file. diff -r 1ce7dce8710b -r ee1e731661c6 src/filelock.c --- a/src/filelock.c Tue Oct 24 20:41:46 2000 +0000 +++ b/src/filelock.c Tue Oct 24 20:54:30 2000 +0000 @@ -1,5 +1,6 @@ /* Lock files for editing. - Copyright (C) 1985, 86, 87, 93, 94, 96, 98, 1999 Free Software Foundation, Inc. + Copyright (C) 1985, 86, 87, 93, 94, 96, 98, 1999, 2000 + Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -660,12 +661,7 @@ b = XBUFFER (XCDR (XCAR (tail))); if (STRINGP (b->file_truename) && BUF_SAVE_MODIFF (b) < BUF_MODIFF (b)) { - register char *lfname; - - MAKE_LOCK_NAME (lfname, b->file_truename); - - if (current_lock_owner (0, lfname) == 2) - unlink (lfname); + unlock_file(b->file_truename); } } }