; * src/filelock.c (Flock_file): Doc fix (bug#70216).
authorEli Zaretskii <eliz@gnu.org>
Sun, 7 Apr 2024 06:24:58 +0000 (09:24 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 7 Apr 2024 06:24:58 +0000 (09:24 +0300)
src/filelock.c

index 7acee1f8dddac803ff63881a5fa0d66c75461528..3dc5f6d68d6e495518e36e963e008547e9664dbd 100644 (file)
@@ -772,8 +772,11 @@ unlock_all_files (void)
 }
 \f
 DEFUN ("lock-file", Flock_file, Slock_file, 1, 1, 0,
-       doc: /* Lock FILE.
-If the option `create-lockfiles' is nil, this does nothing.  */)
+       doc: /* Check whether FILE was modified since it was visited, and lock it.
+If user option `create-lockfiles' is nil, this does not create
+a lock file for FILE, but it still checks whether FILE was modified
+outside of the current Emacs session, and if so, asks the user
+whether to modify FILE.  */)
   (Lisp_Object file)
 {
 #ifndef MSDOS