]> git.eshelyaron.com Git - emacs.git/commitdiff
; * 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)
committerEshel Yaron <me@eshelyaron.com>
Sun, 14 Apr 2024 16:45:10 +0000 (18:45 +0200)
(cherry picked from commit 2a41b6ba51457448b3937fbb1d9e06f62c3d5a9f)

src/filelock.c

index 8c27b226900d252f50618ad77d840dc72d45c7b8..01d35c46726a42fc69d666f1c68151d31c88afa3 100644 (file)
@@ -638,8 +638,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