From: Eli Zaretskii Date: Sun, 7 Apr 2024 06:24:58 +0000 (+0300) Subject: ; * src/filelock.c (Flock_file): Doc fix (bug#70216). X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9581fd1e03b30ee5b7e103cb45edfaf09434b61c;p=emacs.git ; * src/filelock.c (Flock_file): Doc fix (bug#70216). (cherry picked from commit 2a41b6ba51457448b3937fbb1d9e06f62c3d5a9f) --- diff --git a/src/filelock.c b/src/filelock.c index 8c27b226900..01d35c46726 100644 --- a/src/filelock.c +++ b/src/filelock.c @@ -638,8 +638,11 @@ unlock_all_files (void) } 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