summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2021-07-13 19:50:05 +0200
committerMichael Albinus <michael.albinus@gmx.de>2021-07-13 19:50:05 +0200
commitcce84822f72e6cd4af7bfa351a4da2c9bdc5bb81 (patch)
treea200828f55384268354d7fbb972e98765d111ca2 /lisp/files.el
parent7a803ecd3d455999cfc9266fa219d58109fac786 (diff)
downloademacs-cce84822f72e6cd4af7bfa351a4da2c9bdc5bb81.tar.gz
emacs-cce84822f72e6cd4af7bfa351a4da2c9bdc5bb81.tar.bz2
emacs-cce84822f72e6cd4af7bfa351a4da2c9bdc5bb81.zip
Add remote-file-name-inhibit-locks
* doc/emacs/files.texi (Interlocking): * doc/lispref/files.texi (File Locks): * doc/misc/tramp.texi (Auto-save File Lock and Backup): Add remote-file-name-inhibit-locks. * etc/NEWS: New user option 'remote-file-name-inhibit-locks'. * lisp/files.el (remote-file-name-inhibit-locks): New defcustom. * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist): * lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler-alist): * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): * lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist): * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist): * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist): * lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist): Use `tramp-handle-make-lock-file-name'. * lisp/net/tramp.el (tramp-allow-unsafe-temporary-files): Fix docstring. (tramp-handle-make-lock-file-name): New defun. * test/lisp/net/tramp-tests.el (tramp-test39-lock-file): Extend test.
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 0dfcab8f89b..ad02d373fd0 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -427,6 +427,12 @@ file it's locking, and it has the same name, but with \".#\" prepended."
:initialize 'custom-initialize-delay
:version "28.1")
+(defcustom remote-file-name-inhibit-locks nil
+ "Whether to use file locks for remote files."
+ :group 'files
+ :version "28.1"
+ :type 'boolean)
+
(defvar auto-save--timer nil "Timer for `auto-save-visited-mode'.")
(defcustom auto-save-visited-interval 5