Function: tramp-handle-unlock-file

tramp-handle-unlock-file is a byte-compiled function defined in tramp.el.gz.

Signature

(tramp-handle-unlock-file FILE)

Documentation

Like unlock-file for Tramp files.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-handle-unlock-file (file)
  "Like `unlock-file' for Tramp files."
  (when-let ((lockname (tramp-compat-make-lock-file-name file)))
    (condition-case err
        (delete-file lockname)
      ;; `userlock--handle-unlock-error' exists since Emacs 28.1.
      (error (tramp-compat-funcall 'userlock--handle-unlock-error err)))))