]> git.eshelyaron.com Git - emacs.git/commit
Some further adaptions wrt Tramp file name locks
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 8 Jul 2021 05:48:40 +0000 (07:48 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 8 Jul 2021 05:48:40 +0000 (07:48 +0200)
commit6d580b00e48e567ac92645e2d120769475d196ad
treec7bb4944804b1ec61f79325d50562955e402752b
parent7d6d14023a4ad7907c6e10ebdb49d78f9c6393e4
Some further adaptions wrt Tramp file name locks

* lisp/files.el (files--transform-file-name): Rename from
`auto-save--transform-file-name'.  Wrap with `save-match-data'.
(make-auto-save-file-name): Use it.
(make-lock-file-name): Use it.  Call file name handler.

* lisp/net/tramp.el (tramp-handle-write-region):
* lisp/net/tramp-adb.el (tramp-adb-handle-write-region):
* lisp/net/tramp-sh.el (tramp-sh-handle-write-region):
* lisp/net/tramp-smb.el (tramp-smb-handle-write-region):
Suppress file lock for temporary file.

* lisp/net/tramp-compat.el (tramp-compat-make-lock-file-name):
New defalias.

* lisp/net/tramp.el (tramp-get-lock-file)
(tramp-handle-lock-file, tramp-handle-unlock-file): Use it.
(tramp-make-lock-name): Remove.

* test/lisp/filenotify-tests.el (file-notify-test03-events-remote):
Tag it :unstable temporarily.
lisp/files.el
lisp/net/tramp-adb.el
lisp/net/tramp-compat.el
lisp/net/tramp-sh.el
lisp/net/tramp-smb.el
lisp/net/tramp.el
test/lisp/filenotify-tests.el