emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 6e55127e04: * lisp/files.el (lock-file-name-transforms): Doc tw


From: Glenn Morris
Subject: emacs-28 6e55127e04: * lisp/files.el (lock-file-name-transforms): Doc tweaks.
Date: Wed, 12 Jan 2022 13:36:33 -0500 (EST)

branch: emacs-28
commit 6e55127e041d2ce8ab4df8ee874594bbc5073fb5
Author: Glenn Morris <rgm@gnu.org>
Commit: Glenn Morris <rgm@gnu.org>

    * lisp/files.el (lock-file-name-transforms): Doc tweaks.
---
 lisp/files.el | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/lisp/files.el b/lisp/files.el
index 888c2d3784..5fa38e46af 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -458,12 +458,16 @@ If `silently', don't ask the user before saving."
 
 (defcustom lock-file-name-transforms nil
   "Transforms to apply to buffer file name before making a lock file name.
-This has the same syntax as
-`auto-save-file-name-transforms' (which see), but instead of
-applying to auto-save file names, it's applied to lock file names.
+This has the same syntax as `auto-save-file-name-transforms',
+but applies to lock file names instead of auto-save file names.
 
-By default, a lock file is put into the same directory as the
-file it's locking, and it has the same name, but with \".#\" prepended."
+By default, Emacs puts each lock file into the same directory as the
+file it locks, prepending \".#\" to the base file name.
+
+Note that changing this could break lock file functionality, e.g.:
+if different users access the same file, using different lock file settings;
+if accessing files on a shared file system from different hosts,
+using a transform that puts the lock files on a local file system."
   :group 'files
   :type '(repeat (list (regexp :tag "Regexp")
                        (string :tag "Replacement")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]