]> git.eshelyaron.com Git - emacs.git/commitdiff
(unlock_all_files): Use unlock_file to expand each
authorGerd Moellmann <gerd@gnu.org>
Tue, 24 Oct 2000 20:57:11 +0000 (20:57 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 24 Oct 2000 20:57:11 +0000 (20:57 +0000)
buffer's file_truename before trying remove its lock file.

src/ChangeLog
src/filelock.c

index 0dc6d23e0bab8dbbb54cd83459e18a6a530e090b..f46f95882cace583fdb2e94fed4698aaefdb36ed 100644 (file)
        * .gdbinit (xbacktrace): Handle case that $bt->function isn't
        a symbol.
 
+2000-10-24  Colin Walters  <walters@cis.ohio-state.edu>
+
+       * filelock.c (unlock_all_files): Use unlock_file to expand each
+       buffer's file_truename before trying remove its lock file.
+
 2000-10-24  Eli Zaretskii  <eliz@is.elta.co.il>
 
        * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
index 4ca356f337f0678f9d3dac327e7968f3eecb6306..44db9722f91048c165114f79b72731eb2b60b6c4 100644 (file)
@@ -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 @@ unlock_all_files ()
       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);
        }
     }
 }