diff options
| author | Richard M. Stallman | 1995-08-09 22:39:32 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-08-09 22:39:32 +0000 |
| commit | 5383bc6df99cfe5583b9f3a22ebd153cf5405b74 (patch) | |
| tree | 9a729e538d450bad96bab134562b76a22ca480e2 /src | |
| parent | 52e011899b22dec7f650d34a1145cf06f4e403bd (diff) | |
| download | emacs-5383bc6df99cfe5583b9f3a22ebd153cf5405b74.tar.gz emacs-5383bc6df99cfe5583b9f3a22ebd153cf5405b74.zip | |
(lock_file): Use get_truename_buffer.
Diffstat (limited to 'src')
| -rw-r--r-- | src/filelock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/filelock.c b/src/filelock.c index 98d197afd54..bda8bede020 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -199,9 +199,10 @@ void | |||
| 199 | lock_file (fn) | 199 | lock_file (fn) |
| 200 | register Lisp_Object fn; | 200 | register Lisp_Object fn; |
| 201 | { | 201 | { |
| 202 | register Lisp_Object attack; | 202 | register Lisp_Object attack, orig_fn; |
| 203 | register char *lfname; | 203 | register char *lfname; |
| 204 | 204 | ||
| 205 | orig_fn = fn; | ||
| 205 | fn = Fexpand_file_name (fn, Qnil); | 206 | fn = Fexpand_file_name (fn, Qnil); |
| 206 | 207 | ||
| 207 | MAKE_LOCK_NAME (lfname, fn); | 208 | MAKE_LOCK_NAME (lfname, fn); |
| @@ -210,7 +211,7 @@ lock_file (fn) | |||
| 210 | visited. */ | 211 | visited. */ |
| 211 | { | 212 | { |
| 212 | register Lisp_Object subject_buf; | 213 | register Lisp_Object subject_buf; |
| 213 | subject_buf = Fget_file_buffer (fn); | 214 | subject_buf = get_truename_buffer (orig_fn); |
| 214 | if (!NILP (subject_buf) | 215 | if (!NILP (subject_buf) |
| 215 | && NILP (Fverify_visited_file_modtime (subject_buf)) | 216 | && NILP (Fverify_visited_file_modtime (subject_buf)) |
| 216 | && !NILP (Ffile_exists_p (fn))) | 217 | && !NILP (Ffile_exists_p (fn))) |