aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/net/tramp-cmds.el2
-rw-r--r--lisp/net/tramp-compat.el5
-rw-r--r--lisp/net/tramp-message.el4
-rw-r--r--lisp/net/tramp.el9
4 files changed, 12 insertions, 8 deletions
diff --git a/lisp/net/tramp-cmds.el b/lisp/net/tramp-cmds.el
index 6cd856c10e5..ecb9071eb57 100644
--- a/lisp/net/tramp-cmds.el
+++ b/lisp/net/tramp-cmds.el
@@ -585,7 +585,7 @@ An alternative method could be chosen with `tramp-file-name-with-method'."
585 (tramp-make-tramp-file-name 585 (tramp-make-tramp-file-name
586 (make-tramp-file-name 586 (make-tramp-file-name
587 :method tramp-file-name-with-method :localname localname))) 587 :method tramp-file-name-with-method :localname localname)))
588 ;; Remote file with multi-hop capable method.. 588 ;; Remote file with multi-hop capable method.
589 ((tramp-multi-hop-p v) 589 ((tramp-multi-hop-p v)
590 (tramp-make-tramp-file-name 590 (tramp-make-tramp-file-name
591 (make-tramp-file-name 591 (make-tramp-file-name
diff --git a/lisp/net/tramp-compat.el b/lisp/net/tramp-compat.el
index a324c4fa826..1d6f47dc364 100644
--- a/lisp/net/tramp-compat.el
+++ b/lisp/net/tramp-compat.el
@@ -252,8 +252,9 @@ Also see `ignore'."
252 (tramp-error vec tramp-permission-denied file) 252 (tramp-error vec tramp-permission-denied file)
253 (tramp-error vec tramp-permission-denied "Permission denied: %s" file))) 253 (tramp-error vec tramp-permission-denied "Permission denied: %s" file)))
254 254
255;; Function `auth-info-password' is new in Emacs 29.1. However, it 255;; Function `auth-info-password' is new in Emacs 29.1. Finally,
256;; doesn't obey cascaded functions, which is fixed in Emacs 30.1 only. 256;; Bug#49289 is fixed in Emacs 30.1 for the `secrets' and `plstore'
257;; auth-sources backends.
257(defalias 'tramp-compat-auth-info-password 258(defalias 'tramp-compat-auth-info-password
258 (if (>= emacs-major-version 30) 259 (if (>= emacs-major-version 30)
259 'auth-info-password 260 'auth-info-password
diff --git a/lisp/net/tramp-message.el b/lisp/net/tramp-message.el
index 685b14d14db..8d6458ce07a 100644
--- a/lisp/net/tramp-message.el
+++ b/lisp/net/tramp-message.el
@@ -357,7 +357,9 @@ This function is meant for debugging purposes."
357 (let ((tramp-verbose (if force 10 tramp-verbose))) 357 (let ((tramp-verbose (if force 10 tramp-verbose)))
358 (when (>= tramp-verbose 10) 358 (when (>= tramp-verbose 10)
359 (tramp-message 359 (tramp-message
360 vec-or-proc 10 "\n%s" (with-output-to-string (backtrace)))))) 360 ;; In batch-mode, we want to see it on stderr.
361 vec-or-proc (if (and force noninteractive) 1 10)
362 "\n%s" (with-output-to-string (backtrace))))))
361 363
362(defsubst tramp-error (vec-or-proc signal fmt-string &rest arguments) 364(defsubst tramp-error (vec-or-proc signal fmt-string &rest arguments)
363 "Emit an error. 365 "Emit an error.
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index d9db17ea598..f97ed66c58b 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -3477,7 +3477,7 @@ BODY is the backend specific code."
3477 (with-tramp-file-property v localname "file-exists-p" 3477 (with-tramp-file-property v localname "file-exists-p"
3478 ;; Examine `file-attributes' cache to see if request can 3478 ;; Examine `file-attributes' cache to see if request can
3479 ;; be satisfied without remote operation. 3479 ;; be satisfied without remote operation.
3480 (if (tramp-use-file-attributes v) 3480 (if (tramp-file-property-p v localname "file-attributes")
3481 (not 3481 (not
3482 (null (tramp-get-file-property v localname "file-attributes"))) 3482 (null (tramp-get-file-property v localname "file-attributes")))
3483 ,@body)))))) 3483 ,@body))))))
@@ -3594,8 +3594,7 @@ that a stederr file is supported. BODY is the backend specific code."
3594 (not (tramp-equal-remote default-directory stderr))) 3594 (not (tramp-equal-remote default-directory stderr)))
3595 (signal 'file-error (list "Wrong stderr" stderr))) 3595 (signal 'file-error (list "Wrong stderr" stderr)))
3596 3596
3597 (let ((default-directory tramp-compat-temporary-file-directory) 3597 (let ((name (tramp-get-unique-process-name name))
3598 (name (tramp-get-unique-process-name name))
3599 (buffer 3598 (buffer
3600 (if buffer 3599 (if buffer
3601 (get-buffer-create buffer) 3600 (get-buffer-create buffer)
@@ -5058,7 +5057,8 @@ should be set connection-local.")
5058 ;; Check for `tramp-sh-file-name-handler' and 5057 ;; Check for `tramp-sh-file-name-handler' and
5059 ;; `adb-file-name-handler-p', because something is different 5058 ;; `adb-file-name-handler-p', because something is different
5060 ;; between tramp-sh.el, and tramp-adb.el or tramp-sshfs.el. 5059 ;; between tramp-sh.el, and tramp-adb.el or tramp-sshfs.el.
5061 (let* ((sh-file-name-handler-p (tramp-sh-file-name-handler-p v)) 5060 (let* ((default-directory tramp-compat-temporary-file-directory)
5061 (sh-file-name-handler-p (tramp-sh-file-name-handler-p v))
5062 (adb-file-name-handler-p (tramp-adb-file-name-p v)) 5062 (adb-file-name-handler-p (tramp-adb-file-name-p v))
5063 (env (mapcar 5063 (env (mapcar
5064 (lambda (elt) 5064 (lambda (elt)
@@ -5896,6 +5896,7 @@ Mostly useful to protect BODY from being interrupted by timers."
5896 ;; Be kind for old versions of Emacs. 5896 ;; Be kind for old versions of Emacs.
5897 (if (member 'remote-file-error debug-ignored-errors) 5897 (if (member 'remote-file-error debug-ignored-errors)
5898 (throw 'non-essential 'non-essential) 5898 (throw 'non-essential 'non-essential)
5899 ;(tramp-backtrace ,proc 'force)
5899 (tramp-error 5900 (tramp-error
5900 ,proc 'remote-file-error "Forbidden reentrant call of Tramp")) 5901 ,proc 'remote-file-error "Forbidden reentrant call of Tramp"))
5901 (with-tramp-suspended-timers 5902 (with-tramp-suspended-timers