(tramp-make-tramp-file-name
(make-tramp-file-name
:method tramp-file-name-with-method :localname localname)))
- ;; Remote file with multi-hop capable method..
+ ;; Remote file with multi-hop capable method.
((tramp-multi-hop-p v)
(tramp-make-tramp-file-name
(make-tramp-file-name
(tramp-error vec tramp-permission-denied file)
(tramp-error vec tramp-permission-denied "Permission denied: %s" file)))
-;; Function `auth-info-password' is new in Emacs 29.1. However, it
-;; doesn't obey cascaded functions, which is fixed in Emacs 30.1 only.
+;; Function `auth-info-password' is new in Emacs 29.1. Finally,
+;; Bug#49289 is fixed in Emacs 30.1 for the `secrets' and `plstore'
+;; auth-sources backends.
(defalias 'tramp-compat-auth-info-password
(if (>= emacs-major-version 30)
'auth-info-password
(let ((tramp-verbose (if force 10 tramp-verbose)))
(when (>= tramp-verbose 10)
(tramp-message
- vec-or-proc 10 "\n%s" (with-output-to-string (backtrace))))))
+ ;; In batch-mode, we want to see it on stderr.
+ vec-or-proc (if (and force noninteractive) 1 10)
+ "\n%s" (with-output-to-string (backtrace))))))
(defsubst tramp-error (vec-or-proc signal fmt-string &rest arguments)
"Emit an error.
(with-tramp-file-property v localname "file-exists-p"
;; Examine `file-attributes' cache to see if request can
;; be satisfied without remote operation.
- (if (tramp-use-file-attributes v)
+ (if (tramp-file-property-p v localname "file-attributes")
(not
(null (tramp-get-file-property v localname "file-attributes")))
,@body))))))
(not (tramp-equal-remote default-directory stderr)))
(signal 'file-error (list "Wrong stderr" stderr)))
- (let ((default-directory tramp-compat-temporary-file-directory)
- (name (tramp-get-unique-process-name name))
+ (let ((name (tramp-get-unique-process-name name))
(buffer
(if buffer
(get-buffer-create buffer)
;; Check for `tramp-sh-file-name-handler' and
;; `adb-file-name-handler-p', because something is different
;; between tramp-sh.el, and tramp-adb.el or tramp-sshfs.el.
- (let* ((sh-file-name-handler-p (tramp-sh-file-name-handler-p v))
+ (let* ((default-directory tramp-compat-temporary-file-directory)
+ (sh-file-name-handler-p (tramp-sh-file-name-handler-p v))
(adb-file-name-handler-p (tramp-adb-file-name-p v))
(env (mapcar
(lambda (elt)
;; Be kind for old versions of Emacs.
(if (member 'remote-file-error debug-ignored-errors)
(throw 'non-essential 'non-essential)
+ ;(tramp-backtrace ,proc 'force)
(tramp-error
,proc 'remote-file-error "Forbidden reentrant call of Tramp"))
(with-tramp-suspended-timers