Mercurial > emacs
diff src/filelock.c @ 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 | 10197e4b3fb2 |
children | 21a86b6274e6 |
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)))