• Michael Albinus's avatar
    Some further adaptions wrt Tramp file name locks · 6d580b00
    Michael Albinus authored
    * 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.
    6d580b00
tramp-compat.el 14.4 KB