aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/net/tramp-cmds.el10
-rw-r--r--lisp/net/tramp-crypt.el12
-rw-r--r--lisp/net/tramp-gvfs.el2
-rw-r--r--lisp/net/tramp-sh.el10
-rw-r--r--lisp/net/tramp-smb.el2
-rw-r--r--lisp/net/tramp.el10
6 files changed, 23 insertions, 23 deletions
diff --git a/lisp/net/tramp-cmds.el b/lisp/net/tramp-cmds.el
index b0cfdb1ebba..1a9d8003530 100644
--- a/lisp/net/tramp-cmds.el
+++ b/lisp/net/tramp-cmds.el
@@ -319,7 +319,7 @@ The remote connection identified by SOURCE is flushed by
319 (read-file-name-function #'read-file-name-default) 319 (read-file-name-function #'read-file-name-default)
320 source target) 320 source target)
321 (if (null connections) 321 (if (null connections)
322 (tramp-user-error nil "There are no remote connections.") 322 (tramp-user-error nil "There are no remote connections")
323 (setq source 323 (setq source
324 ;; Likely, the source remote connection is broken. So we 324 ;; Likely, the source remote connection is broken. So we
325 ;; shall avoid any action on it. 325 ;; shall avoid any action on it.
@@ -367,15 +367,15 @@ The remote connection identified by SOURCE is flushed by
367 (list source target))) 367 (list source target)))
368 368
369 (unless (tramp-tramp-file-p source) 369 (unless (tramp-tramp-file-p source)
370 (tramp-user-error nil "Source %s must be remote." source)) 370 (tramp-user-error nil "Source %s must be remote" source))
371 (when (null target) 371 (when (null target)
372 (or (setq target (tramp-default-rename-file source)) 372 (or (setq target (tramp-default-rename-file source))
373 (tramp-user-error 373 (tramp-user-error
374 nil 374 nil
375 (concat "There is no target specified. " 375 (concat "There is no target specified. "
376 "Check `tramp-default-rename-alist' for a proper entry.")))) 376 "Check `tramp-default-rename-alist' for a proper entry"))))
377 (when (tramp-equal-remote source target) 377 (when (tramp-equal-remote source target)
378 (tramp-user-error nil "Source and target must have different remote.")) 378 (tramp-user-error nil "Source and target must have different remote"))
379 379
380 ;; Append local file name if none is specified. 380 ;; Append local file name if none is specified.
381 (when (string-equal (file-remote-p target) target) 381 (when (string-equal (file-remote-p target) target)
@@ -461,7 +461,7 @@ For details, see `tramp-rename-files'."
461 nil 461 nil
462 (substitute-command-keys 462 (substitute-command-keys
463 (concat "Current buffer is not remote. " 463 (concat "Current buffer is not remote. "
464 "Consider `\\[tramp-rename-files]' instead."))) 464 "Consider `\\[tramp-rename-files]' instead")))
465 (setq target 465 (setq target
466 (when (null current-prefix-arg) 466 (when (null current-prefix-arg)
467 ;; The source remote connection shall not trigger any action. 467 ;; The source remote connection shall not trigger any action.
diff --git a/lisp/net/tramp-crypt.el b/lisp/net/tramp-crypt.el
index 116c2b143e9..4d15695ccbf 100644
--- a/lisp/net/tramp-crypt.el
+++ b/lisp/net/tramp-crypt.el
@@ -436,7 +436,7 @@ Otherwise, return NAME."
436 crypt-vec (if (eq op 'encrypt) "encode" "decode") 436 crypt-vec (if (eq op 'encrypt) "encode" "decode")
437 tramp-compat-temporary-file-directory localname) 437 tramp-compat-temporary-file-directory localname)
438 (tramp-error 438 (tramp-error
439 crypt-vec 'file-error "%s of file name %s failed." 439 crypt-vec 'file-error "%s of file name %s failed"
440 (if (eq op 'encrypt) "Encoding" "Decoding") name)) 440 (if (eq op 'encrypt) "Encoding" "Decoding") name))
441 (with-current-buffer (tramp-get-connection-buffer crypt-vec) 441 (with-current-buffer (tramp-get-connection-buffer crypt-vec)
442 (goto-char (point-min)) 442 (goto-char (point-min))
@@ -471,7 +471,7 @@ Raise an error if this fails."
471 (file-name-directory infile) 471 (file-name-directory infile)
472 (concat "/" (file-name-nondirectory infile))) 472 (concat "/" (file-name-nondirectory infile)))
473 (tramp-error 473 (tramp-error
474 crypt-vec 'file-error "%s of file %s failed." 474 crypt-vec 'file-error "%s of file %s failed"
475 (if (eq op 'encrypt) "Encrypting" "Decrypting") infile)) 475 (if (eq op 'encrypt) "Encrypting" "Decrypting") infile))
476 (with-current-buffer (tramp-get-connection-buffer crypt-vec) 476 (with-current-buffer (tramp-get-connection-buffer crypt-vec)
477 (write-region nil nil outfile))))) 477 (write-region nil nil outfile)))))
@@ -495,11 +495,11 @@ directory. File names will be also encrypted."
495 ;; (declare (completion tramp-crypt-command-completion-p)) 495 ;; (declare (completion tramp-crypt-command-completion-p))
496 (interactive "DRemote directory name: ") 496 (interactive "DRemote directory name: ")
497 (unless tramp-crypt-enabled 497 (unless tramp-crypt-enabled
498 (tramp-user-error nil "Feature is not enabled.")) 498 (tramp-user-error nil "Feature is not enabled"))
499 (unless (and (tramp-tramp-file-p name) (file-directory-p name)) 499 (unless (and (tramp-tramp-file-p name) (file-directory-p name))
500 (tramp-user-error nil "%s must be an existing remote directory." name)) 500 (tramp-user-error nil "%s must be an existing remote directory" name))
501 (when (file-name-quoted-p name) 501 (when (file-name-quoted-p name)
502 (tramp-user-error nil "%s must not be quoted." name)) 502 (tramp-user-error nil "%s must not be quoted" name))
503 (setq name (file-name-as-directory (expand-file-name name))) 503 (setq name (file-name-as-directory (expand-file-name name)))
504 (unless (member name tramp-crypt-directories) 504 (unless (member name tramp-crypt-directories)
505 (setq tramp-crypt-directories (cons name tramp-crypt-directories))) 505 (setq tramp-crypt-directories (cons name tramp-crypt-directories)))
@@ -518,7 +518,7 @@ kept in their encrypted form."
518 ;; (declare (completion tramp-crypt-command-completion-p)) 518 ;; (declare (completion tramp-crypt-command-completion-p))
519 (interactive "DRemote directory name: ") 519 (interactive "DRemote directory name: ")
520 (unless tramp-crypt-enabled 520 (unless tramp-crypt-enabled
521 (tramp-user-error nil "Feature is not enabled.")) 521 (tramp-user-error nil "Feature is not enabled"))
522 (setq name (file-name-as-directory (expand-file-name name))) 522 (setq name (file-name-as-directory (expand-file-name name)))
523 (when (and (member name tramp-crypt-directories) 523 (when (and (member name tramp-crypt-directories)
524 (delete 524 (delete
diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el
index c84f96d3c61..f925d2f3da5 100644
--- a/lisp/net/tramp-gvfs.el
+++ b/lisp/net/tramp-gvfs.el
@@ -1115,7 +1115,7 @@ file names."
1115 (goto-char (point-min)) 1115 (goto-char (point-min))
1116 (tramp-error-with-buffer 1116 (tramp-error-with-buffer
1117 nil v 'file-error 1117 nil v 'file-error
1118 "%s failed, see buffer `%s' for details." 1118 "%s failed, see buffer `%s' for details"
1119 msg-operation (buffer-name))) 1119 msg-operation (buffer-name)))
1120 1120
1121 ;; Some WebDAV server, like the one from QNAP, do 1121 ;; Some WebDAV server, like the one from QNAP, do
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 401cec0e28d..2ef97d540a0 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -1147,8 +1147,8 @@ Operations not mentioned here will be handled by the normal Emacs functions.")
1147 (unless (tramp-get-remote-ln v) 1147 (unless (tramp-get-remote-ln v)
1148 (tramp-error 1148 (tramp-error
1149 v 'file-error 1149 v 'file-error
1150 (concat "Making a symbolic link. " 1150 (concat "Making a symbolic link: "
1151 "ln(1) does not exist on the remote host.")))) 1151 "ln(1) does not exist on the remote host"))))
1152 1152
1153 (tramp-skeleton-handle-make-symbolic-link target linkname ok-if-already-exists 1153 (tramp-skeleton-handle-make-symbolic-link target linkname ok-if-already-exists
1154 (and (tramp-send-command-and-check 1154 (and (tramp-send-command-and-check
@@ -2150,7 +2150,7 @@ the uid and gid from FILENAME."
2150 cmd-result) 2150 cmd-result)
2151 (tramp-error-with-buffer 2151 (tramp-error-with-buffer
2152 nil v 'file-error 2152 nil v 'file-error
2153 "Copying directly failed, see buffer `%s' for details." 2153 "Copying directly failed, see buffer `%s' for details"
2154 (buffer-name))))) 2154 (buffer-name)))))
2155 2155
2156 ;; We are on the local host. 2156 ;; We are on the local host.
@@ -2205,7 +2205,7 @@ the uid and gid from FILENAME."
2205 "%s %s %s" cmd 2205 "%s %s %s" cmd
2206 (tramp-shell-quote-argument localname1) 2206 (tramp-shell-quote-argument localname1)
2207 (tramp-shell-quote-argument tmpfile)) 2207 (tramp-shell-quote-argument tmpfile))
2208 "Copying directly failed, see buffer `%s' for details." 2208 "Copying directly failed, see buffer `%s' for details"
2209 (tramp-get-buffer v)) 2209 (tramp-get-buffer v))
2210 ;; We must change the ownership as remote user. 2210 ;; We must change the ownership as remote user.
2211 ;; Since this does not work reliable, we also 2211 ;; Since this does not work reliable, we also
@@ -2238,7 +2238,7 @@ the uid and gid from FILENAME."
2238 "cp -f -p %s %s" 2238 "cp -f -p %s %s"
2239 (tramp-shell-quote-argument tmpfile) 2239 (tramp-shell-quote-argument tmpfile)
2240 (tramp-shell-quote-argument localname2)) 2240 (tramp-shell-quote-argument localname2))
2241 "Copying directly failed, see buffer `%s' for details." 2241 "Copying directly failed, see buffer `%s' for details"
2242 (tramp-get-buffer v))) 2242 (tramp-get-buffer v)))
2243 (t1 2243 (t1
2244 (tramp-run-real-handler 2244 (tramp-run-real-handler
diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el
index 740841c24db..add230e2720 100644
--- a/lisp/net/tramp-smb.el
+++ b/lisp/net/tramp-smb.el
@@ -692,7 +692,7 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored."
692 692
693 ;; "rmdir" does not report an error. So we check ourselves. 693 ;; "rmdir" does not report an error. So we check ourselves.
694 (when (file-exists-p directory) 694 (when (file-exists-p directory)
695 (tramp-error v 'file-error "`%s' not removed." directory))))) 695 (tramp-error v 'file-error "`%s' not removed" directory)))))
696 696
697(defun tramp-smb-handle-delete-file (filename &optional trash) 697(defun tramp-smb-handle-delete-file (filename &optional trash)
698 "Like `delete-file' for Tramp files." 698 "Like `delete-file' for Tramp files."
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 6eff5b2ca60..defdb2bd546 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1722,11 +1722,11 @@ default values are used."
1722 (unless (or nodefault non-essential 1722 (unless (or nodefault non-essential
1723 (assoc method tramp-methods)) 1723 (assoc method tramp-methods))
1724 (tramp-user-error 1724 (tramp-user-error
1725 v "Method `%s' is not known." method)) 1725 v "Method `%s' is not known" method))
1726 ;; Only some methods from tramp-sh.el do support multi-hops. 1726 ;; Only some methods from tramp-sh.el do support multi-hops.
1727 (unless (or (null hop) nodefault non-essential (tramp-multi-hop-p v)) 1727 (unless (or (null hop) nodefault non-essential (tramp-multi-hop-p v))
1728 (tramp-user-error 1728 (tramp-user-error
1729 v "Method `%s' is not supported for multi-hops." method))))))) 1729 v "Method `%s' is not supported for multi-hops" method)))))))
1730 1730
1731(put #'tramp-dissect-file-name 'tramp-suppress-trace t) 1731(put #'tramp-dissect-file-name 'tramp-suppress-trace t)
1732 1732
@@ -1755,7 +1755,7 @@ See `tramp-dissect-file-name' for details."
1755 ;; Only some methods from tramp-sh.el do support multi-hops. 1755 ;; Only some methods from tramp-sh.el do support multi-hops.
1756 (unless (or nodefault non-essential (tramp-multi-hop-p v)) 1756 (unless (or nodefault non-essential (tramp-multi-hop-p v))
1757 (tramp-user-error 1757 (tramp-user-error
1758 v "Method `%s' is not supported for multi-hops." 1758 v "Method `%s' is not supported for multi-hops"
1759 (tramp-file-name-method v))) 1759 (tramp-file-name-method v)))
1760 ;; Return result. 1760 ;; Return result.
1761 v)) 1761 v))
@@ -3936,7 +3936,7 @@ Let-bind it when necessary.")
3936 ;; Some handlers for `tramp-get-remote-uid' return nil if they 3936 ;; Some handlers for `tramp-get-remote-uid' return nil if they
3937 ;; can't get the UID; always return -1 in this case for 3937 ;; can't get the UID; always return -1 in this case for
3938 ;; consistency. 3938 ;; consistency.
3939 -1))) 3939 tramp-unknown-id-integer)))
3940 3940
3941(defun tramp-handle-access-file (filename string) 3941(defun tramp-handle-access-file (filename string)
3942 "Like `access-file' for Tramp files." 3942 "Like `access-file' for Tramp files."
@@ -4896,7 +4896,7 @@ Do not set it manually, it is used buffer-local in `tramp-get-lock-pid'.")
4896 (unless (tramp-multi-hop-p item) 4896 (unless (tramp-multi-hop-p item)
4897 (setq tramp-default-proxies-alist saved-tdpa) 4897 (setq tramp-default-proxies-alist saved-tdpa)
4898 (tramp-user-error 4898 (tramp-user-error
4899 vec "Method `%s' is not supported for multi-hops." 4899 vec "Method `%s' is not supported for multi-hops"
4900 (tramp-file-name-method item))))) 4900 (tramp-file-name-method item)))))
4901 4901
4902 ;; Some methods ("su", "sg", "sudo", "doas", "ksu") do not use the 4902 ;; Some methods ("su", "sg", "sudo", "doas", "ksu") do not use the