summaryrefslogtreecommitdiff
path: root/src/filelock.c
diff options
context:
space:
mode:
authorErik Naggum <erik@naggum.no>1996-01-09 00:32:09 +0000
committerErik Naggum <erik@naggum.no>1996-01-09 00:32:09 +0000
commitfc76c274a68a20ad6430a1b7180116dd8b593107 (patch)
tree3b3a347a0b05a3273a60a69f128a5f3eb8c3e591 /src/filelock.c
parentcb94b44aed52436815439ccfef23289f85d9ef7d (diff)
downloademacs-fc76c274a68a20ad6430a1b7180116dd8b593107.tar.gz
(Flock_buffer, Ffile_locked_p): Harmonize arguments with documentation.
Diffstat (limited to 'src/filelock.c')
-rw-r--r--src/filelock.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/filelock.c b/src/filelock.c
index bda8bede020..8fcc1c03c5a 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -397,16 +397,16 @@ DEFUN ("lock-buffer", Flock_buffer, Slock_buffer,
"Lock FILE, if current buffer is modified.\n\
FILE defaults to current buffer's visited file,\n\
or else nothing is done if current buffer isn't visiting a file.")
- (fn)
- Lisp_Object fn;
+ (file)
+ Lisp_Object file;
{
- if (NILP (fn))
- fn = current_buffer->file_truename;
+ if (NILP (file))
+ file = current_buffer->file_truename;
else
- CHECK_STRING (fn, 0);
+ CHECK_STRING (file, 0);
if (SAVE_MODIFF < MODIFF
- && !NILP (fn))
- lock_file (fn);
+ && !NILP (file))
+ lock_file (file);
return Qnil;
}
@@ -436,15 +436,15 @@ unlock_buffer (buffer)
DEFUN ("file-locked-p", Ffile_locked_p, Sfile_locked_p, 0, 1, 0,
"Return nil if the FILENAME is not locked,\n\
t if it is locked by you, else a string of the name of the locker.")
- (fn)
- Lisp_Object fn;
+ (filename)
+ Lisp_Object filename;
{
register char *lfname;
int owner;
- fn = Fexpand_file_name (fn, Qnil);
+ filename = Fexpand_file_name (filename, Qnil);
- MAKE_LOCK_NAME (lfname, fn);
+ MAKE_LOCK_NAME (lfname, filename);
owner = current_lock_owner (lfname);
if (owner <= 0)