Mercurial > emacs
changeset 32833:ee1e731661c6
(unlock_all_files): Use unlock_file to expand each
buffer's file_truename before trying remove its lock file.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 24 Oct 2000 20:54:30 +0000 |
parents | 1ce7dce8710b |
children | 91d978fbe967 |
files | src/filelock.c |
diffstat | 1 files changed, 3 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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); } } }