Mercurial > emacs
changeset 12811:11f5ce737c57
(lock_file): Use get_truename_buffer.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 09 Aug 1995 22:39:32 +0000 |
parents | bd486675e103 |
children | 39e721f1681f |
files | src/filelock.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/filelock.c Wed Aug 09 22:39:09 1995 +0000 +++ b/src/filelock.c Wed Aug 09 22:39:32 1995 +0000 @@ -199,9 +199,10 @@ lock_file (fn) register Lisp_Object fn; { - register Lisp_Object attack; + register Lisp_Object attack, orig_fn; register char *lfname; + orig_fn = fn; fn = Fexpand_file_name (fn, Qnil); MAKE_LOCK_NAME (lfname, fn); @@ -210,7 +211,7 @@ visited. */ { register Lisp_Object subject_buf; - subject_buf = Fget_file_buffer (fn); + subject_buf = get_truename_buffer (orig_fn); if (!NILP (subject_buf) && NILP (Fverify_visited_file_modtime (subject_buf)) && !NILP (Ffile_exists_p (fn)))