rw-path)))))))
(defun tramp-adb-handle-write-region
- (start end filename &optional append visit lockname mustbenew)
+ (start end filename &optional append visit _lockname mustbenew)
"Like `write-region' for Tramp files."
(setq filename (expand-file-name filename))
(with-parsed-tramp-file-name filename nil
(when (and append (file-exists-p filename))
(copy-file filename tmpfile 'ok)
(set-file-modes tmpfile (logior (or (file-modes tmpfile) 0) #o0600)))
- (write-region start end tmpfile append 'no-message lockname)
+ (write-region start end tmpfile append 'no-message)
(with-tramp-progress-reporter
v 3 (format-message
"Moving tmp file `%s' to `%s'" tmpfile filename)
tmpfile)))
(defun tramp-sh-handle-write-region
- (start end filename &optional append visit lockname mustbenew)
+ (start end filename &optional append visit _lockname mustbenew)
"Like `write-region' for Tramp files."
(setq filename (expand-file-name filename))
(with-parsed-tramp-file-name filename nil
(or (file-directory-p localname)
(file-writable-p localname)))))
;; Short track: if we are on the local host, we can run directly.
- (write-region start end localname append 'no-message lockname)
+ (write-region start end localname append 'no-message)
(let* ((modes (tramp-default-file-modes
filename (and (eq mustbenew 'excl) 'nofollow)))
(let ((file-coding-system-alist
(tramp-find-file-name-coding-system-alist filename tmpfile)))
(condition-case err
- (write-region start end tmpfile append 'no-message lockname)
+ (write-region start end tmpfile append 'no-message)
((error quit)
(setq tramp-temp-buffer-file-name nil)
(delete-file tmpfile)
(error filename))))
(defun tramp-smb-handle-write-region
- (start end filename &optional append visit lockname mustbenew)
+ (start end filename &optional append visit _lockname mustbenew)
"Like `write-region' for Tramp files."
(setq filename (expand-file-name filename))
(with-parsed-tramp-file-name filename nil
;; We say `no-message' here because we don't want the visited file
;; modtime data to be clobbered from the temp file. We call
;; `set-visited-file-modtime' ourselves later on.
- (tramp-run-real-handler
- #'write-region (list start end tmpfile append 'no-message lockname))
+ (write-region start end tmpfile append 'no-message)
(with-tramp-progress-reporter
v 3 (format "Moving tmp file %s to %s" tmpfile filename)
(tramp-fuse-local-file-name filename) mode flag))))
(defun tramp-sshfs-handle-write-region
- (start end filename &optional append visit lockname mustbenew)
+ (start end filename &optional append visit _lockname mustbenew)
"Like `write-region' for Tramp files."
(setq filename (expand-file-name filename))
(with-parsed-tramp-file-name filename nil
(tramp-error v 'file-already-exists filename))
(write-region
- start end (tramp-fuse-local-file-name filename) append 'nomessage lockname)
+ start end (tramp-fuse-local-file-name filename) append 'nomessage)
(tramp-flush-file-properties v localname)
;; The end.
(t (tramp-compat-time-equal-p mt tramp-time-doesnt-exist))))))))
(defun tramp-handle-write-region
- (start end filename &optional append visit lockname mustbenew)
+ (start end filename &optional append visit _lockname mustbenew)
"Like `write-region' for Tramp files."
(setq filename (expand-file-name filename))
(with-parsed-tramp-file-name filename nil
;; We say `no-message' here because we don't want the visited file
;; modtime data to be clobbered from the temp file. We call
;; `set-visited-file-modtime' ourselves later on.
- (write-region start end tmpfile append 'no-message lockname)
+ (write-region start end tmpfile append 'no-message)
(condition-case nil
(rename-file tmpfile filename 'ok-if-already-exists)
(error
"Temporary directory for Tramp tests.")
(setq password-cache-expiry nil
- shadow-debug (getenv "EMACS_HYDRA_CI")
+ shadow-debug (or (getenv "EMACS_HYDRA_CI") (getenv "EMACS_EMBA_CI"))
tramp-verbose 0
;; When the remote user id is 0, Tramp refuses unsafe temporary files.
tramp-allow-unsafe-temporary-files