diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/net/tramp-adb.el | 45 | ||||
| -rw-r--r-- | lisp/net/tramp-cache.el | 2 | ||||
| -rw-r--r-- | lisp/net/tramp-compat.el | 30 | ||||
| -rw-r--r-- | lisp/net/tramp-gvfs.el | 22 | ||||
| -rw-r--r-- | lisp/net/tramp-gw.el | 8 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 196 | ||||
| -rw-r--r-- | lisp/net/tramp-smb.el | 36 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 10 |
8 files changed, 185 insertions, 164 deletions
diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el index 746bd675089..9ef78a03fda 100644 --- a/lisp/net/tramp-adb.el +++ b/lisp/net/tramp-adb.el | |||
| @@ -258,7 +258,7 @@ pass to the OPERATION." | |||
| 258 | method user host | 258 | method user host |
| 259 | (with-tramp-file-property v localname "file-truename" | 259 | (with-tramp-file-property v localname "file-truename" |
| 260 | (let ((result nil)) ; result steps in reverse order | 260 | (let ((result nil)) ; result steps in reverse order |
| 261 | (tramp-message v 4 "Finding true name for `%s'" filename) | 261 | (tramp-message v 4 "Finding true name for ‘%s’" filename) |
| 262 | (let* ((directory-sep-char ?/) | 262 | (let* ((directory-sep-char ?/) |
| 263 | (steps (tramp-compat-split-string localname "/")) | 263 | (steps (tramp-compat-split-string localname "/")) |
| 264 | (localnamedir (tramp-run-real-handler | 264 | (localnamedir (tramp-run-real-handler |
| @@ -290,9 +290,9 @@ pass to the OPERATION." | |||
| 290 | (list thisstep)) | 290 | (list thisstep)) |
| 291 | "/"))))) | 291 | "/"))))) |
| 292 | (cond ((string= "." thisstep) | 292 | (cond ((string= "." thisstep) |
| 293 | (tramp-message v 5 "Ignoring step `.'")) | 293 | (tramp-message v 5 "Ignoring step ‘.’")) |
| 294 | ((string= ".." thisstep) | 294 | ((string= ".." thisstep) |
| 295 | (tramp-message v 5 "Processing step `..'") | 295 | (tramp-message v 5 "Processing step ‘..’") |
| 296 | (pop result)) | 296 | (pop result)) |
| 297 | ((stringp symlink-target) | 297 | ((stringp symlink-target) |
| 298 | ;; It's a symlink, follow it. | 298 | ;; It's a symlink, follow it. |
| @@ -307,7 +307,7 @@ pass to the OPERATION." | |||
| 307 | (unless (tramp-equal-remote filename symlink-target) | 307 | (unless (tramp-equal-remote filename symlink-target) |
| 308 | (tramp-error | 308 | (tramp-error |
| 309 | v 'file-error | 309 | v 'file-error |
| 310 | "Symlink target `%s' on wrong host" symlink-target)) | 310 | "Symlink target ‘%s’ on wrong host" symlink-target)) |
| 311 | (setq symlink-target localname)) | 311 | (setq symlink-target localname)) |
| 312 | (setq steps | 312 | (setq steps |
| 313 | (append (tramp-compat-split-string | 313 | (append (tramp-compat-split-string |
| @@ -330,7 +330,7 @@ pass to the OPERATION." | |||
| 330 | (not (string= (substring result -1) "/")))) | 330 | (not (string= (substring result -1) "/")))) |
| 331 | (setq result (concat result "/")))) | 331 | (setq result (concat result "/")))) |
| 332 | 332 | ||
| 333 | (tramp-message v 4 "True name of `%s' is `%s'" localname result) | 333 | (tramp-message v 4 "True name of ‘%s’ is ‘%s’" localname result) |
| 334 | result)))) | 334 | result)))) |
| 335 | 335 | ||
| 336 | ;; Preserve trailing "/". | 336 | ;; Preserve trailing "/". |
| @@ -433,7 +433,7 @@ pass to the OPERATION." | |||
| 433 | 433 | ||
| 434 | (defun tramp-adb-get-ls-command (vec) | 434 | (defun tramp-adb-get-ls-command (vec) |
| 435 | (with-tramp-connection-property vec "ls" | 435 | (with-tramp-connection-property vec "ls" |
| 436 | (tramp-message vec 5 "Finding a suitable `ls' command") | 436 | (tramp-message vec 5 "Finding a suitable ‘ls’ command") |
| 437 | (if (tramp-adb-send-command-and-check vec "ls --color=never -al /dev/null") | 437 | (if (tramp-adb-send-command-and-check vec "ls --color=never -al /dev/null") |
| 438 | ;; On CyanogenMod based system BusyBox is used and "ls" output | 438 | ;; On CyanogenMod based system BusyBox is used and "ls" output |
| 439 | ;; coloring is enabled by default. So we try to disable it | 439 | ;; coloring is enabled by default. So we try to disable it |
| @@ -514,7 +514,7 @@ Emacs dired can't find files." | |||
| 514 | (make-directory par parents)))) | 514 | (make-directory par parents)))) |
| 515 | (tramp-adb-barf-unless-okay | 515 | (tramp-adb-barf-unless-okay |
| 516 | v (format "mkdir %s" (tramp-shell-quote-argument localname)) | 516 | v (format "mkdir %s" (tramp-shell-quote-argument localname)) |
| 517 | "Couldn't make directory %s" dir) | 517 | "Couldn’t make directory %s" dir) |
| 518 | (tramp-flush-file-property v (file-name-directory localname)) | 518 | (tramp-flush-file-property v (file-name-directory localname)) |
| 519 | (tramp-flush-directory-property v localname))) | 519 | (tramp-flush-directory-property v localname))) |
| 520 | 520 | ||
| @@ -528,7 +528,7 @@ Emacs dired can't find files." | |||
| 528 | v (format "%s %s" | 528 | v (format "%s %s" |
| 529 | (if recursive "rm -r" "rmdir") | 529 | (if recursive "rm -r" "rmdir") |
| 530 | (tramp-shell-quote-argument localname)) | 530 | (tramp-shell-quote-argument localname)) |
| 531 | "Couldn't delete %s" directory))) | 531 | "Couldn’t delete %s" directory))) |
| 532 | 532 | ||
| 533 | (defun tramp-adb-handle-delete-file (filename &optional _trash) | 533 | (defun tramp-adb-handle-delete-file (filename &optional _trash) |
| 534 | "Like `delete-file' for Tramp files." | 534 | "Like `delete-file' for Tramp files." |
| @@ -538,7 +538,7 @@ Emacs dired can't find files." | |||
| 538 | (tramp-flush-file-property v localname) | 538 | (tramp-flush-file-property v localname) |
| 539 | (tramp-adb-barf-unless-okay | 539 | (tramp-adb-barf-unless-okay |
| 540 | v (format "rm %s" (tramp-shell-quote-argument localname)) | 540 | v (format "rm %s" (tramp-shell-quote-argument localname)) |
| 541 | "Couldn't delete %s" filename))) | 541 | "Couldn’t delete %s" filename))) |
| 542 | 542 | ||
| 543 | (defun tramp-adb-handle-file-name-all-completions (filename directory) | 543 | (defun tramp-adb-handle-file-name-all-completions (filename directory) |
| 544 | "Like `file-name-all-completions' for Tramp files." | 544 | "Like `file-name-all-completions' for Tramp files." |
| @@ -571,7 +571,7 @@ Emacs dired can't find files." | |||
| 571 | (unless (file-exists-p (file-truename filename)) | 571 | (unless (file-exists-p (file-truename filename)) |
| 572 | (tramp-error | 572 | (tramp-error |
| 573 | v 'file-error | 573 | v 'file-error |
| 574 | "Cannot make local copy of non-existing file `%s'" filename)) | 574 | "Cannot make local copy of non-existing file ‘%s’" filename)) |
| 575 | (let ((tmpfile (tramp-compat-make-temp-file filename))) | 575 | (let ((tmpfile (tramp-compat-make-temp-file filename))) |
| 576 | (with-tramp-progress-reporter | 576 | (with-tramp-progress-reporter |
| 577 | v 3 (format "Fetching %s to tmp file %s" filename tmpfile) | 577 | v 3 (format "Fetching %s to tmp file %s" filename tmpfile) |
| @@ -580,7 +580,7 @@ Emacs dired can't find files." | |||
| 580 | (not (file-exists-p tmpfile))) | 580 | (not (file-exists-p tmpfile))) |
| 581 | (ignore-errors (delete-file tmpfile)) | 581 | (ignore-errors (delete-file tmpfile)) |
| 582 | (tramp-error | 582 | (tramp-error |
| 583 | v 'file-error "Cannot make local copy of file `%s'" filename)) | 583 | v 'file-error "Cannot make local copy of file ‘%s’" filename)) |
| 584 | (set-file-modes | 584 | (set-file-modes |
| 585 | tmpfile | 585 | tmpfile |
| 586 | (logior (or (file-modes filename) 0) | 586 | (logior (or (file-modes filename) 0) |
| @@ -635,10 +635,11 @@ But handle the case, if the \"test\" command is not available." | |||
| 635 | 'write-region | 635 | 'write-region |
| 636 | (list start end tmpfile append 'no-message lockname confirm)) | 636 | (list start end tmpfile append 'no-message lockname confirm)) |
| 637 | (with-tramp-progress-reporter | 637 | (with-tramp-progress-reporter |
| 638 | v 3 (format "Moving tmp file `%s' to `%s'" tmpfile filename) | 638 | v 3 (format-message |
| 639 | "Moving tmp file ‘%s’ to ‘%s’" tmpfile filename) | ||
| 639 | (unwind-protect | 640 | (unwind-protect |
| 640 | (when (tramp-adb-execute-adb-command v "push" tmpfile localname) | 641 | (when (tramp-adb-execute-adb-command v "push" tmpfile localname) |
| 641 | (tramp-error v 'file-error "Cannot write: `%s'" filename)) | 642 | (tramp-error v 'file-error "Cannot write: ‘%s’" filename)) |
| 642 | (delete-file tmpfile))) | 643 | (delete-file tmpfile))) |
| 643 | 644 | ||
| 644 | (when (or (eq visit t) (stringp visit)) | 645 | (when (or (eq visit t) (stringp visit)) |
| @@ -647,7 +648,7 @@ But handle the case, if the \"test\" command is not available." | |||
| 647 | (unless (equal curbuf (current-buffer)) | 648 | (unless (equal curbuf (current-buffer)) |
| 648 | (tramp-error | 649 | (tramp-error |
| 649 | v 'file-error | 650 | v 'file-error |
| 650 | "Buffer has changed from `%s' to `%s'" curbuf (current-buffer)))))) | 651 | "Buffer has changed from ‘%s’ to ‘%s’" curbuf (current-buffer)))))) |
| 651 | 652 | ||
| 652 | (defun tramp-adb-handle-set-file-modes (filename mode) | 653 | (defun tramp-adb-handle-set-file-modes (filename mode) |
| 653 | "Like `set-file-modes' for Tramp files." | 654 | "Like `set-file-modes' for Tramp files." |
| @@ -712,7 +713,7 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored." | |||
| 712 | (tramp-flush-file-property v localname) | 713 | (tramp-flush-file-property v localname) |
| 713 | (when (tramp-adb-execute-adb-command v "push" filename localname) | 714 | (when (tramp-adb-execute-adb-command v "push" filename localname) |
| 714 | (tramp-error | 715 | (tramp-error |
| 715 | v 'file-error "Cannot copy `%s' `%s'" filename newname)))))) | 716 | v 'file-error "Cannot copy ‘%s’ ‘%s’" filename newname)))))) |
| 716 | 717 | ||
| 717 | ;; KEEP-DATE handling. | 718 | ;; KEEP-DATE handling. |
| 718 | (when keep-date | 719 | (when keep-date |
| @@ -1113,7 +1114,7 @@ the exit status is not equal 0, and t otherwise." | |||
| 1113 | (goto-char (point-max)) | 1114 | (goto-char (point-max)) |
| 1114 | (unless (re-search-backward "tramp_exit_status [0-9]+" nil t) | 1115 | (unless (re-search-backward "tramp_exit_status [0-9]+" nil t) |
| 1115 | (tramp-error | 1116 | (tramp-error |
| 1116 | vec 'file-error "Couldn't find exit status of `%s'" command)) | 1117 | vec 'file-error "Couldn’t find exit status of ‘%s’" command)) |
| 1117 | (skip-chars-forward "^ ") | 1118 | (skip-chars-forward "^ ") |
| 1118 | (prog1 | 1119 | (prog1 |
| 1119 | (zerop (read (current-buffer))) | 1120 | (zerop (read (current-buffer))) |
| @@ -1130,7 +1131,7 @@ FMT and ARGS are passed to `error'." | |||
| 1130 | "Wait for output from remote command." | 1131 | "Wait for output from remote command." |
| 1131 | (unless (buffer-live-p (process-buffer proc)) | 1132 | (unless (buffer-live-p (process-buffer proc)) |
| 1132 | (delete-process proc) | 1133 | (delete-process proc) |
| 1133 | (tramp-error proc 'file-error "Process `%s' not available, try again" proc)) | 1134 | (tramp-error proc 'file-error "Process ‘%s’ not available, try again" proc)) |
| 1134 | (with-current-buffer (process-buffer proc) | 1135 | (with-current-buffer (process-buffer proc) |
| 1135 | (if (tramp-wait-for-regexp proc timeout tramp-adb-prompt) | 1136 | (if (tramp-wait-for-regexp proc timeout tramp-adb-prompt) |
| 1136 | (let (buffer-read-only) | 1137 | (let (buffer-read-only) |
| @@ -1150,11 +1151,11 @@ FMT and ARGS are passed to `error'." | |||
| 1150 | (if timeout | 1151 | (if timeout |
| 1151 | (tramp-error | 1152 | (tramp-error |
| 1152 | proc 'file-error | 1153 | proc 'file-error |
| 1153 | "[[Remote adb prompt `%s' not found in %d secs]]" | 1154 | "[[Remote adb prompt ‘%s’ not found in %d secs]]" |
| 1154 | tramp-adb-prompt timeout) | 1155 | tramp-adb-prompt timeout) |
| 1155 | (tramp-error | 1156 | (tramp-error |
| 1156 | proc 'file-error | 1157 | proc 'file-error |
| 1157 | "[[Remote prompt `%s' not found]]" tramp-adb-prompt))))) | 1158 | "[[Remote prompt ‘%s’ not found]]" tramp-adb-prompt))))) |
| 1158 | 1159 | ||
| 1159 | (defun tramp-adb-maybe-open-connection (vec) | 1160 | (defun tramp-adb-maybe-open-connection (vec) |
| 1160 | "Maybe open a connection VEC. | 1161 | "Maybe open a connection VEC. |
| @@ -1177,7 +1178,7 @@ connection if a previous connection has died for some reason." | |||
| 1177 | ;; use a connection property, because we have not checked yet | 1178 | ;; use a connection property, because we have not checked yet |
| 1178 | ;; whether it is still the same device. | 1179 | ;; whether it is still the same device. |
| 1179 | (when (and user (not (tramp-get-file-property vec "" "su-command-p" t))) | 1180 | (when (and user (not (tramp-get-file-property vec "" "su-command-p" t))) |
| 1180 | (tramp-error vec 'file-error "Cannot switch to user `%s'" user)) | 1181 | (tramp-error vec 'file-error "Cannot switch to user ‘%s’" user)) |
| 1181 | 1182 | ||
| 1182 | (unless | 1183 | (unless |
| 1183 | (and p (processp p) (memq (process-status p) '(run open))) | 1184 | (and p (processp p) (memq (process-status p) '(run open))) |
| @@ -1223,7 +1224,7 @@ connection if a previous connection has died for some reason." | |||
| 1223 | (not (string-equal old-getprop new-getprop))) | 1224 | (not (string-equal old-getprop new-getprop))) |
| 1224 | (tramp-message | 1225 | (tramp-message |
| 1225 | vec 3 | 1226 | vec 3 |
| 1226 | "Connection reset, because remote host changed from `%s' to `%s'" | 1227 | "Connection reset, because remote host changed from ‘%s’ to ‘%s’" |
| 1227 | old-getprop new-getprop) | 1228 | old-getprop new-getprop) |
| 1228 | (tramp-cleanup-connection vec t) | 1229 | (tramp-cleanup-connection vec t) |
| 1229 | (tramp-adb-maybe-open-connection vec))) | 1230 | (tramp-adb-maybe-open-connection vec))) |
| @@ -1235,7 +1236,7 @@ connection if a previous connection has died for some reason." | |||
| 1235 | (delete-process p) | 1236 | (delete-process p) |
| 1236 | (tramp-set-file-property vec "" "su-command-p" nil) | 1237 | (tramp-set-file-property vec "" "su-command-p" nil) |
| 1237 | (tramp-error | 1238 | (tramp-error |
| 1238 | vec 'file-error "Cannot switch to user `%s'" user))) | 1239 | vec 'file-error "Cannot switch to user ‘%s’" user))) |
| 1239 | 1240 | ||
| 1240 | ;; Set "remote-path" connection property. This is needed | 1241 | ;; Set "remote-path" connection property. This is needed |
| 1241 | ;; for eshell. | 1242 | ;; for eshell. |
diff --git a/lisp/net/tramp-cache.el b/lisp/net/tramp-cache.el index f13eee20562..c1d6a284a76 100644 --- a/lisp/net/tramp-cache.el +++ b/lisp/net/tramp-cache.el | |||
| @@ -440,7 +440,7 @@ for all methods. Resulting data are derived from connection history." | |||
| 440 | (clrhash tramp-cache-data)) | 440 | (clrhash tramp-cache-data)) |
| 441 | (error | 441 | (error |
| 442 | ;; File is corrupted. | 442 | ;; File is corrupted. |
| 443 | (message "Tramp persistency file '%s' is corrupted: %s" | 443 | (message "Tramp persistency file ‘%s’ is corrupted: %s" |
| 444 | tramp-persistency-file-name (error-message-string err)) | 444 | tramp-persistency-file-name (error-message-string err)) |
| 445 | (clrhash tramp-cache-data)))) | 445 | (clrhash tramp-cache-data)))) |
| 446 | 446 | ||
diff --git a/lisp/net/tramp-compat.el b/lisp/net/tramp-compat.el index e68c81cfa70..48eda2fd174 100644 --- a/lisp/net/tramp-compat.el +++ b/lisp/net/tramp-compat.el | |||
| @@ -236,8 +236,8 @@ this is the function `temp-directory'." | |||
| 236 | ((let ((d (getenv "TMPDIR"))) (and d (file-directory-p d))) | 236 | ((let ((d (getenv "TMPDIR"))) (and d (file-directory-p d))) |
| 237 | (file-name-as-directory (getenv "TMPDIR"))) | 237 | (file-name-as-directory (getenv "TMPDIR"))) |
| 238 | ((file-exists-p "c:/temp") (file-name-as-directory "c:/temp")) | 238 | ((file-exists-p "c:/temp") (file-name-as-directory "c:/temp")) |
| 239 | (t (message (concat "Neither `temporary-file-directory' nor " | 239 | (t (message (concat "Neither ‘temporary-file-directory’ nor " |
| 240 | "`temp-directory' is defined -- using /tmp.")) | 240 | "‘temp-directory’ is defined -- using /tmp.")) |
| 241 | (file-name-as-directory "/tmp"))))) | 241 | (file-name-as-directory "/tmp"))))) |
| 242 | 242 | ||
| 243 | ;; `make-temp-file' exists in Emacs only. On XEmacs, we use our own | 243 | ;; `make-temp-file' exists in Emacs only. On XEmacs, we use our own |
| @@ -294,7 +294,7 @@ Not actually used. Use `(format \"%o\" i)' instead?" | |||
| 294 | (let ((x (or ostr ""))) | 294 | (let ((x (or ostr ""))) |
| 295 | ;; `save-match' is in `tramp-mode-string-to-int' which calls this. | 295 | ;; `save-match' is in `tramp-mode-string-to-int' which calls this. |
| 296 | (unless (string-match "\\`[0-7]*\\'" x) | 296 | (unless (string-match "\\`[0-7]*\\'" x) |
| 297 | (error "Non-octal junk in string `%s'" x)) | 297 | (error "Non-octal junk in string ‘%s’" x)) |
| 298 | (string-to-number ostr 8))) | 298 | (string-to-number ostr 8))) |
| 299 | 299 | ||
| 300 | ;; ID-FORMAT does not exist in XEmacs. | 300 | ;; ID-FORMAT does not exist in XEmacs. |
| @@ -534,10 +534,10 @@ EOL-TYPE can be one of `dos', `unix', or `mac'." | |||
| 534 | ((eq eol-type 'unix) 'lf) | 534 | ((eq eol-type 'unix) 'lf) |
| 535 | ((eq eol-type 'mac) 'cr) | 535 | ((eq eol-type 'mac) 'cr) |
| 536 | (t | 536 | (t |
| 537 | (error "Unknown EOL-TYPE `%s', must be %s" | 537 | (error |
| 538 | eol-type | 538 | "Unknown EOL-TYPE ‘%s’, must be ‘dos’, ‘unix’, or ‘mac’" |
| 539 | "`dos', `unix', or `mac'"))))) | 539 | eol-type))))) |
| 540 | (t (error "Can't change EOL conversion -- is MULE missing?")))) | 540 | (t (error "Can’t change EOL conversion -- is MULE missing?")))) |
| 541 | 541 | ||
| 542 | ;; `replace-regexp-in-string' does not exist in XEmacs. | 542 | ;; `replace-regexp-in-string' does not exist in XEmacs. |
| 543 | ;; Implementation is taken from Emacs 24. | 543 | ;; Implementation is taken from Emacs 24. |
| @@ -595,6 +595,22 @@ and replace a sub-expression, e.g. | |||
| 595 | (unless (fboundp 'default-toplevel-value) | 595 | (unless (fboundp 'default-toplevel-value) |
| 596 | (defalias 'default-toplevel-value 'symbol-value)) | 596 | (defalias 'default-toplevel-value 'symbol-value)) |
| 597 | 597 | ||
| 598 | ;; ‘format-message’ is new in Emacs 25, and does not exist in XEmacs. | ||
| 599 | ;; The substitute implementation always uses grave quoting style, for | ||
| 600 | ;; compatibility with older Emacs. | ||
| 601 | (unless (fboundp 'format-message) | ||
| 602 | (defalias 'format-message | ||
| 603 | (lambda (format-string &rest args) | ||
| 604 | (let ((restyled-format-string | ||
| 605 | (let ((start (string-match "[‘’]" format-string))) | ||
| 606 | (if start | ||
| 607 | (tramp-compat-replace-regexp-in-string | ||
| 608 | "[‘’]" | ||
| 609 | (lambda (match) (if (string-equal match "‘") "`" "'")) | ||
| 610 | format-string t t nil start) | ||
| 611 | format-string)))) | ||
| 612 | (apply #'format restyled-format-string args))))) | ||
| 613 | |||
| 598 | (add-hook 'tramp-unload-hook | 614 | (add-hook 'tramp-unload-hook |
| 599 | (lambda () | 615 | (lambda () |
| 600 | (unload-feature 'tramp-loaddefs 'force) | 616 | (unload-feature 'tramp-loaddefs 'force) |
diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el index 4dfdcd76e66..d96fb3e3aa3 100644 --- a/lisp/net/tramp-gvfs.el +++ b/lisp/net/tramp-gvfs.el | |||
| @@ -494,7 +494,7 @@ Operations not mentioned here will be handled by the default Emacs primitives.") | |||
| 494 | First arg specifies the OPERATION, second arg is a list of arguments to | 494 | First arg specifies the OPERATION, second arg is a list of arguments to |
| 495 | pass to the OPERATION." | 495 | pass to the OPERATION." |
| 496 | (unless tramp-gvfs-enabled | 496 | (unless tramp-gvfs-enabled |
| 497 | (tramp-user-error nil "Package `tramp-gvfs' not supported")) | 497 | (tramp-user-error nil "Package ‘tramp-gvfs’ not supported")) |
| 498 | (let ((fn (assoc operation tramp-gvfs-file-name-handler-alist))) | 498 | (let ((fn (assoc operation tramp-gvfs-file-name-handler-alist))) |
| 499 | (if fn | 499 | (if fn |
| 500 | (save-match-data (apply (cdr fn) args)) | 500 | (save-match-data (apply (cdr fn) args)) |
| @@ -600,7 +600,7 @@ This function is invoked by `tramp-gvfs-handle-copy-file' and | |||
| 600 | of `copy' and `rename'. FILENAME and NEWNAME must be absolute | 600 | of `copy' and `rename'. FILENAME and NEWNAME must be absolute |
| 601 | file names." | 601 | file names." |
| 602 | (unless (memq op '(copy rename)) | 602 | (unless (memq op '(copy rename)) |
| 603 | (error "Unknown operation `%s', must be `copy' or `rename'" op)) | 603 | (error "Unknown operation ‘%s’, must be ‘copy’ or ‘rename’" op)) |
| 604 | 604 | ||
| 605 | (let ((t1 (tramp-tramp-file-p filename)) | 605 | (let ((t1 (tramp-tramp-file-p filename)) |
| 606 | (t2 (tramp-tramp-file-p newname)) | 606 | (t2 (tramp-tramp-file-p newname)) |
| @@ -657,7 +657,7 @@ file names." | |||
| 657 | (goto-char (point-min)) | 657 | (goto-char (point-min)) |
| 658 | (tramp-error-with-buffer | 658 | (tramp-error-with-buffer |
| 659 | nil v 'file-error | 659 | nil v 'file-error |
| 660 | "%s failed, see buffer `%s' for details." | 660 | "%s failed, see buffer ‘%s’ for details." |
| 661 | msg-operation (buffer-name))) | 661 | msg-operation (buffer-name))) |
| 662 | 662 | ||
| 663 | ;; Some WebDAV server, like the one from QNAP, do not | 663 | ;; Some WebDAV server, like the one from QNAP, do not |
| @@ -724,7 +724,7 @@ file names." | |||
| 724 | (with-current-buffer (tramp-get-connection-buffer v) | 724 | (with-current-buffer (tramp-get-connection-buffer v) |
| 725 | (goto-char (point-min)) | 725 | (goto-char (point-min)) |
| 726 | (tramp-error-with-buffer | 726 | (tramp-error-with-buffer |
| 727 | nil v 'file-error "Couldn't delete %s" directory))))) | 727 | nil v 'file-error "Couldn’t delete %s" directory))))) |
| 728 | 728 | ||
| 729 | (defun tramp-gvfs-handle-delete-file (filename &optional trash) | 729 | (defun tramp-gvfs-handle-delete-file (filename &optional trash) |
| 730 | "Like `delete-file' for Tramp files." | 730 | "Like `delete-file' for Tramp files." |
| @@ -739,7 +739,7 @@ file names." | |||
| 739 | (with-current-buffer (tramp-get-connection-buffer v) | 739 | (with-current-buffer (tramp-get-connection-buffer v) |
| 740 | (goto-char (point-min)) | 740 | (goto-char (point-min)) |
| 741 | (tramp-error-with-buffer | 741 | (tramp-error-with-buffer |
| 742 | nil v 'file-error "Couldn't delete %s" filename))))) | 742 | nil v 'file-error "Couldn’t delete %s" filename))))) |
| 743 | 743 | ||
| 744 | (defun tramp-gvfs-handle-expand-file-name (name &optional dir) | 744 | (defun tramp-gvfs-handle-expand-file-name (name &optional dir) |
| 745 | "Like `expand-file-name' for Tramp files." | 745 | "Like `expand-file-name' for Tramp files." |
| @@ -765,7 +765,7 @@ file names." | |||
| 765 | (when (string-match "\\`\\(~[^/]*\\)\\(.*\\)\\'" localname) | 765 | (when (string-match "\\`\\(~[^/]*\\)\\(.*\\)\\'" localname) |
| 766 | (tramp-error | 766 | (tramp-error |
| 767 | v 'file-error | 767 | v 'file-error |
| 768 | "Cannot expand tilde in file `%s'" name)) | 768 | "Cannot expand tilde in file ‘%s’" name)) |
| 769 | (unless (tramp-run-real-handler 'file-name-absolute-p (list localname)) | 769 | (unless (tramp-run-real-handler 'file-name-absolute-p (list localname)) |
| 770 | (setq localname (concat "/" localname))) | 770 | (setq localname (concat "/" localname))) |
| 771 | ;; We do not pass "/..". | 771 | ;; We do not pass "/..". |
| @@ -927,7 +927,7 @@ file names." | |||
| 927 | (unless (file-exists-p filename) | 927 | (unless (file-exists-p filename) |
| 928 | (tramp-error | 928 | (tramp-error |
| 929 | v 'file-error | 929 | v 'file-error |
| 930 | "Cannot make local copy of non-existing file `%s'" filename)) | 930 | "Cannot make local copy of non-existing file ‘%s’" filename)) |
| 931 | (copy-file filename tmpfile t t) | 931 | (copy-file filename tmpfile t t) |
| 932 | tmpfile))) | 932 | tmpfile))) |
| 933 | 933 | ||
| @@ -1013,7 +1013,7 @@ file names." | |||
| 1013 | (tramp-error | 1013 | (tramp-error |
| 1014 | v 'file-notify-error "gvfs-monitor-file failed to start") | 1014 | v 'file-notify-error "gvfs-monitor-file failed to start") |
| 1015 | (tramp-message | 1015 | (tramp-message |
| 1016 | v 6 "Run `%s', %S" (mapconcat 'identity (process-command p) " ") p) | 1016 | v 6 "Run ‘%s’, %S" (mapconcat 'identity (process-command p) " ") p) |
| 1017 | (tramp-set-connection-property p "vector" v) | 1017 | (tramp-set-connection-property p "vector" v) |
| 1018 | (tramp-compat-set-process-query-on-exit-flag p nil) | 1018 | (tramp-compat-set-process-query-on-exit-flag p nil) |
| 1019 | (set-process-filter p 'tramp-gvfs-file-gvfs-monitor-file-process-filter) | 1019 | (set-process-filter p 'tramp-gvfs-file-gvfs-monitor-file-process-filter) |
| @@ -1094,7 +1094,7 @@ file names." | |||
| 1094 | ;; Just do it. | 1094 | ;; Just do it. |
| 1095 | (unless (tramp-gvfs-send-command | 1095 | (unless (tramp-gvfs-send-command |
| 1096 | v "gvfs-mkdir" (tramp-gvfs-url-file-name dir)) | 1096 | v "gvfs-mkdir" (tramp-gvfs-url-file-name dir)) |
| 1097 | (tramp-error v 'file-error "Couldn't make directory %s" dir)))))) | 1097 | (tramp-error v 'file-error "Couldn’t make directory %s" dir)))))) |
| 1098 | 1098 | ||
| 1099 | (defun tramp-gvfs-handle-rename-file | 1099 | (defun tramp-gvfs-handle-rename-file |
| 1100 | (filename newname &optional ok-if-already-exists) | 1100 | (filename newname &optional ok-if-already-exists) |
| @@ -1136,7 +1136,7 @@ file names." | |||
| 1136 | (error | 1136 | (error |
| 1137 | (delete-file tmpfile) | 1137 | (delete-file tmpfile) |
| 1138 | (tramp-error | 1138 | (tramp-error |
| 1139 | v 'file-error "Couldn't write region to `%s'" filename)))) | 1139 | v 'file-error "Couldn’t write region to ‘%s’" filename)))) |
| 1140 | 1140 | ||
| 1141 | (tramp-flush-file-property v (file-name-directory localname)) | 1141 | (tramp-flush-file-property v (file-name-directory localname)) |
| 1142 | (tramp-flush-file-property v localname) | 1142 | (tramp-flush-file-property v localname) |
| @@ -1175,7 +1175,7 @@ file names." | |||
| 1175 | (url-hexify-string (file-truename filename)) nil nil t)))) | 1175 | (url-hexify-string (file-truename filename)) nil nil t)))) |
| 1176 | (when (tramp-tramp-file-p filename) | 1176 | (when (tramp-tramp-file-p filename) |
| 1177 | (with-parsed-tramp-file-name filename nil | 1177 | (with-parsed-tramp-file-name filename nil |
| 1178 | (tramp-message v 10 "remote file `%s' is URL `%s'" filename result))) | 1178 | (tramp-message v 10 "remote file ‘%s’ is URL ‘%s’" filename result))) |
| 1179 | result)) | 1179 | result)) |
| 1180 | 1180 | ||
| 1181 | (defun tramp-gvfs-object-path (filename) | 1181 | (defun tramp-gvfs-object-path (filename) |
diff --git a/lisp/net/tramp-gw.el b/lisp/net/tramp-gw.el index 5e22f6a3b59..8f1909ae578 100644 --- a/lisp/net/tramp-gw.el +++ b/lisp/net/tramp-gw.el | |||
| @@ -95,7 +95,7 @@ | |||
| 95 | "Delete auxiliary process when we are deleted." | 95 | "Delete auxiliary process when we are deleted." |
| 96 | (unless (memq (process-status proc) '(run open)) | 96 | (unless (memq (process-status proc) '(run open)) |
| 97 | (tramp-message | 97 | (tramp-message |
| 98 | tramp-gw-vector 4 "Deleting auxiliary process `%s'" tramp-gw-gw-proc) | 98 | tramp-gw-vector 4 "Deleting auxiliary process ‘%s’" tramp-gw-gw-proc) |
| 99 | (let* ((tramp-verbose 0) | 99 | (let* ((tramp-verbose 0) |
| 100 | (p (tramp-get-connection-property proc "process" nil))) | 100 | (p (tramp-get-connection-property proc "process" nil))) |
| 101 | (when (processp p) (delete-process p))))) | 101 | (when (processp p) (delete-process p))))) |
| @@ -106,7 +106,7 @@ | |||
| 106 | ;; A new process has been spawned from `tramp-gw-aux-proc'. | 106 | ;; A new process has been spawned from `tramp-gw-aux-proc'. |
| 107 | (tramp-message | 107 | (tramp-message |
| 108 | tramp-gw-vector 4 | 108 | tramp-gw-vector 4 |
| 109 | "Opening auxiliary process `%s', speaking with process `%s'" | 109 | "Opening auxiliary process ‘%s’, speaking with process ‘%s’" |
| 110 | proc tramp-gw-gw-proc) | 110 | proc tramp-gw-gw-proc) |
| 111 | (tramp-compat-set-process-query-on-exit-flag proc nil) | 111 | (tramp-compat-set-process-query-on-exit-flag proc nil) |
| 112 | ;; We don't want debug messages, because the corresponding debug | 112 | ;; We don't want debug messages, because the corresponding debug |
| @@ -160,7 +160,7 @@ instead of the host name declared in TARGET-VEC." | |||
| 160 | (set-process-sentinel tramp-gw-aux-proc 'tramp-gw-aux-proc-sentinel) | 160 | (set-process-sentinel tramp-gw-aux-proc 'tramp-gw-aux-proc-sentinel) |
| 161 | (tramp-compat-set-process-query-on-exit-flag tramp-gw-aux-proc nil) | 161 | (tramp-compat-set-process-query-on-exit-flag tramp-gw-aux-proc nil) |
| 162 | (tramp-message | 162 | (tramp-message |
| 163 | vec 4 "Opening auxiliary process `%s', listening on port %d" | 163 | vec 4 "Opening auxiliary process ‘%s’, listening on port %d" |
| 164 | tramp-gw-aux-proc (process-contact tramp-gw-aux-proc :service)))) | 164 | tramp-gw-aux-proc (process-contact tramp-gw-aux-proc :service)))) |
| 165 | 165 | ||
| 166 | (let* ((gw-method | 166 | (let* ((gw-method |
| @@ -206,7 +206,7 @@ instead of the host name declared in TARGET-VEC." | |||
| 206 | (set-process-coding-system tramp-gw-gw-proc 'binary 'binary) | 206 | (set-process-coding-system tramp-gw-gw-proc 'binary 'binary) |
| 207 | (tramp-compat-set-process-query-on-exit-flag tramp-gw-gw-proc nil) | 207 | (tramp-compat-set-process-query-on-exit-flag tramp-gw-gw-proc nil) |
| 208 | (tramp-message | 208 | (tramp-message |
| 209 | vec 4 "Opened %s process `%s'" | 209 | vec 4 "Opened %s process ‘%s’" |
| 210 | (case gw-method ('tunnel "HTTP tunnel") ('socks "SOCKS")) | 210 | (case gw-method ('tunnel "HTTP tunnel") ('socks "SOCKS")) |
| 211 | tramp-gw-gw-proc) | 211 | tramp-gw-gw-proc) |
| 212 | 212 | ||
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 90b84b27950..b12c417f72d 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -1046,7 +1046,7 @@ target of the symlink differ." | |||
| 1046 | method user host | 1046 | method user host |
| 1047 | (with-tramp-file-property v localname "file-truename" | 1047 | (with-tramp-file-property v localname "file-truename" |
| 1048 | (let ((result nil)) ; result steps in reverse order | 1048 | (let ((result nil)) ; result steps in reverse order |
| 1049 | (tramp-message v 4 "Finding true name for `%s'" filename) | 1049 | (tramp-message v 4 "Finding true name for ‘%s’" filename) |
| 1050 | (cond | 1050 | (cond |
| 1051 | ;; Use GNU readlink --canonicalize-missing where available. | 1051 | ;; Use GNU readlink --canonicalize-missing where available. |
| 1052 | ((tramp-get-remote-readlink v) | 1052 | ((tramp-get-remote-readlink v) |
| @@ -1104,9 +1104,9 @@ target of the symlink differ." | |||
| 1104 | (list thisstep)) | 1104 | (list thisstep)) |
| 1105 | "/"))))) | 1105 | "/"))))) |
| 1106 | (cond ((string= "." thisstep) | 1106 | (cond ((string= "." thisstep) |
| 1107 | (tramp-message v 5 "Ignoring step `.'")) | 1107 | (tramp-message v 5 "Ignoring step ‘.’")) |
| 1108 | ((string= ".." thisstep) | 1108 | ((string= ".." thisstep) |
| 1109 | (tramp-message v 5 "Processing step `..'") | 1109 | (tramp-message v 5 "Processing step ‘..’") |
| 1110 | (pop result)) | 1110 | (pop result)) |
| 1111 | ((stringp symlink-target) | 1111 | ((stringp symlink-target) |
| 1112 | ;; It's a symlink, follow it. | 1112 | ;; It's a symlink, follow it. |
| @@ -1122,7 +1122,7 @@ target of the symlink differ." | |||
| 1122 | (unless (tramp-equal-remote filename symlink-target) | 1122 | (unless (tramp-equal-remote filename symlink-target) |
| 1123 | (tramp-error | 1123 | (tramp-error |
| 1124 | v 'file-error | 1124 | v 'file-error |
| 1125 | "Symlink target `%s' on wrong host" | 1125 | "Symlink target ‘%s’ on wrong host" |
| 1126 | symlink-target)) | 1126 | symlink-target)) |
| 1127 | (setq symlink-target localname)) | 1127 | (setq symlink-target localname)) |
| 1128 | (setq steps | 1128 | (setq steps |
| @@ -1147,7 +1147,7 @@ target of the symlink differ." | |||
| 1147 | (not (string= (substring result -1) "/")))) | 1147 | (not (string= (substring result -1) "/")))) |
| 1148 | (setq result (concat result "/")))))) | 1148 | (setq result (concat result "/")))))) |
| 1149 | 1149 | ||
| 1150 | (tramp-message v 4 "True name of `%s' is `%s'" localname result) | 1150 | (tramp-message v 4 "True name of ‘%s’ is ‘%s’" localname result) |
| 1151 | result)))) | 1151 | result)))) |
| 1152 | 1152 | ||
| 1153 | ;; Preserve trailing "/". | 1153 | ;; Preserve trailing "/". |
| @@ -1333,7 +1333,7 @@ target of the symlink differ." | |||
| 1333 | (defun tramp-sh-handle-set-visited-file-modtime (&optional time-list) | 1333 | (defun tramp-sh-handle-set-visited-file-modtime (&optional time-list) |
| 1334 | "Like `set-visited-file-modtime' for Tramp files." | 1334 | "Like `set-visited-file-modtime' for Tramp files." |
| 1335 | (unless (buffer-file-name) | 1335 | (unless (buffer-file-name) |
| 1336 | (error "Can't set-visited-file-modtime: buffer `%s' not visiting a file" | 1336 | (error "Can’t set-visited-file-modtime: buffer ‘%s’ not visiting a file" |
| 1337 | (buffer-name))) | 1337 | (buffer-name))) |
| 1338 | (if time-list | 1338 | (if time-list |
| 1339 | (tramp-run-real-handler 'set-visited-file-modtime (list time-list)) | 1339 | (tramp-run-real-handler 'set-visited-file-modtime (list time-list)) |
| @@ -1427,7 +1427,7 @@ of." | |||
| 1427 | (format "chmod %s %s" | 1427 | (format "chmod %s %s" |
| 1428 | (tramp-compat-decimal-to-octal mode) | 1428 | (tramp-compat-decimal-to-octal mode) |
| 1429 | (tramp-shell-quote-argument localname)) | 1429 | (tramp-shell-quote-argument localname)) |
| 1430 | "Error while changing file's mode %s" filename))) | 1430 | "Error while changing file’s mode %s" filename))) |
| 1431 | 1431 | ||
| 1432 | (defun tramp-sh-handle-set-file-times (filename &optional time) | 1432 | (defun tramp-sh-handle-set-file-times (filename &optional time) |
| 1433 | "Like `set-file-times' for Tramp files." | 1433 | "Like `set-file-times' for Tramp files." |
| @@ -1901,7 +1901,7 @@ be non-negative integers." | |||
| 1901 | (tramp-error | 1901 | (tramp-error |
| 1902 | v 'file-error | 1902 | v 'file-error |
| 1903 | "\ | 1903 | "\ |
| 1904 | tramp-sh-handle-file-name-all-completions: internal error accessing `%s': `%s'" | 1904 | tramp-sh-handle-file-name-all-completions: internal error accessing ‘%s’: ‘%s’" |
| 1905 | (tramp-shell-quote-argument localname) (buffer-string)))) | 1905 | (tramp-shell-quote-argument localname) (buffer-string)))) |
| 1906 | 1906 | ||
| 1907 | (while (zerop (forward-line -1)) | 1907 | (while (zerop (forward-line -1)) |
| @@ -1954,7 +1954,7 @@ tramp-sh-handle-file-name-all-completions: internal error accessing `%s': `%s'" | |||
| 1954 | (format "%s %s %s" ln | 1954 | (format "%s %s %s" ln |
| 1955 | (tramp-shell-quote-argument v1-localname) | 1955 | (tramp-shell-quote-argument v1-localname) |
| 1956 | (tramp-shell-quote-argument v2-localname)) | 1956 | (tramp-shell-quote-argument v2-localname)) |
| 1957 | "error with add-name-to-file, see buffer `%s' for details" | 1957 | "error with add-name-to-file, see buffer ‘%s’ for details" |
| 1958 | (buffer-name)))))) | 1958 | (buffer-name)))))) |
| 1959 | 1959 | ||
| 1960 | (defun tramp-sh-handle-copy-file | 1960 | (defun tramp-sh-handle-copy-file |
| @@ -2059,7 +2059,7 @@ This function is invoked by `tramp-sh-handle-copy-file' and | |||
| 2059 | of `copy' and `rename'. FILENAME and NEWNAME must be absolute | 2059 | of `copy' and `rename'. FILENAME and NEWNAME must be absolute |
| 2060 | file names." | 2060 | file names." |
| 2061 | (unless (memq op '(copy rename)) | 2061 | (unless (memq op '(copy rename)) |
| 2062 | (error "Unknown operation `%s', must be `copy' or `rename'" op)) | 2062 | (error "Unknown operation ‘%s’, must be ‘copy’ or ‘rename’" op)) |
| 2063 | (let ((t1 (tramp-tramp-file-p filename)) | 2063 | (let ((t1 (tramp-tramp-file-p filename)) |
| 2064 | (t2 (tramp-tramp-file-p newname)) | 2064 | (t2 (tramp-tramp-file-p newname)) |
| 2065 | (length (nth 7 (file-attributes (file-truename filename)))) | 2065 | (length (nth 7 (file-attributes (file-truename filename)))) |
| @@ -2199,7 +2199,7 @@ the uid and gid from FILENAME." | |||
| 2199 | ((eq op 'rename) "mv -f") | 2199 | ((eq op 'rename) "mv -f") |
| 2200 | (t (tramp-error | 2200 | (t (tramp-error |
| 2201 | v 'file-error | 2201 | v 'file-error |
| 2202 | "Unknown operation `%s', must be `copy' or `rename'" | 2202 | "Unknown operation ‘%s’, must be ‘copy’ or ‘rename’" |
| 2203 | op)))) | 2203 | op)))) |
| 2204 | (localname1 | 2204 | (localname1 |
| 2205 | (if t1 | 2205 | (if t1 |
| @@ -2231,7 +2231,7 @@ the uid and gid from FILENAME." | |||
| 2231 | cmd-result) | 2231 | cmd-result) |
| 2232 | (tramp-error-with-buffer | 2232 | (tramp-error-with-buffer |
| 2233 | nil v 'file-error | 2233 | nil v 'file-error |
| 2234 | "Copying directly failed, see buffer `%s' for details." | 2234 | "Copying directly failed, see buffer ‘%s’ for details." |
| 2235 | (buffer-name))))) | 2235 | (buffer-name))))) |
| 2236 | 2236 | ||
| 2237 | ;; We are on the local host. | 2237 | ;; We are on the local host. |
| @@ -2284,7 +2284,7 @@ the uid and gid from FILENAME." | |||
| 2284 | "%s %s %s" cmd | 2284 | "%s %s %s" cmd |
| 2285 | (tramp-shell-quote-argument localname1) | 2285 | (tramp-shell-quote-argument localname1) |
| 2286 | (tramp-shell-quote-argument tmpfile)) | 2286 | (tramp-shell-quote-argument tmpfile)) |
| 2287 | "Copying directly failed, see buffer `%s' for details." | 2287 | "Copying directly failed, see buffer ‘%s’ for details." |
| 2288 | (tramp-get-buffer v)) | 2288 | (tramp-get-buffer v)) |
| 2289 | ;; We must change the ownership as remote user. | 2289 | ;; We must change the ownership as remote user. |
| 2290 | ;; Since this does not work reliable, we also | 2290 | ;; Since this does not work reliable, we also |
| @@ -2322,7 +2322,7 @@ the uid and gid from FILENAME." | |||
| 2322 | "cp -f -p %s %s" | 2322 | "cp -f -p %s %s" |
| 2323 | (tramp-shell-quote-argument tmpfile) | 2323 | (tramp-shell-quote-argument tmpfile) |
| 2324 | (tramp-shell-quote-argument localname2)) | 2324 | (tramp-shell-quote-argument localname2)) |
| 2325 | "Copying directly failed, see buffer `%s' for details." | 2325 | "Copying directly failed, see buffer ‘%s’ for details." |
| 2326 | (tramp-get-buffer v))) | 2326 | (tramp-get-buffer v))) |
| 2327 | (t1 | 2327 | (t1 |
| 2328 | (tramp-run-real-handler | 2328 | (tramp-run-real-handler |
| @@ -2493,7 +2493,7 @@ The method used must be an out-of-band method." | |||
| 2493 | (with-timeout | 2493 | (with-timeout |
| 2494 | (60 (tramp-error | 2494 | (60 (tramp-error |
| 2495 | v 'file-error | 2495 | v 'file-error |
| 2496 | "Listener process not running on remote host: `%s'" | 2496 | "Listener process not running on remote host: ‘%s’" |
| 2497 | remote-copy-program)) | 2497 | remote-copy-program)) |
| 2498 | (tramp-send-command v (format "netstat -l | grep -q :%s" listener)) | 2498 | (tramp-send-command v (format "netstat -l | grep -q :%s" listener)) |
| 2499 | (while (not (tramp-send-command-and-check v nil)) | 2499 | (while (not (tramp-send-command-and-check v nil)) |
| @@ -2553,14 +2553,14 @@ The method used must be an out-of-band method." | |||
| 2553 | (re-search-backward "tramp_exit_status [0-9]+" nil t) | 2553 | (re-search-backward "tramp_exit_status [0-9]+" nil t) |
| 2554 | (tramp-error | 2554 | (tramp-error |
| 2555 | orig-vec 'file-error | 2555 | orig-vec 'file-error |
| 2556 | "Couldn't find exit status of `%s'" | 2556 | "Couldn’t find exit status of ‘%s’" |
| 2557 | (mapconcat 'identity (process-command p) " "))) | 2557 | (mapconcat 'identity (process-command p) " "))) |
| 2558 | (skip-chars-forward "^ ") | 2558 | (skip-chars-forward "^ ") |
| 2559 | (unless (zerop (read (current-buffer))) | 2559 | (unless (zerop (read (current-buffer))) |
| 2560 | (forward-line -1) | 2560 | (forward-line -1) |
| 2561 | (tramp-error | 2561 | (tramp-error |
| 2562 | orig-vec 'file-error | 2562 | orig-vec 'file-error |
| 2563 | "Error copying: `%s'" | 2563 | "Error copying: ‘%s’" |
| 2564 | (buffer-substring (point-min) (point-at-eol)))))) | 2564 | (buffer-substring (point-min) (point-at-eol)))))) |
| 2565 | 2565 | ||
| 2566 | ;; Reset the transfer process properties. | 2566 | ;; Reset the transfer process properties. |
| @@ -2599,7 +2599,7 @@ The method used must be an out-of-band method." | |||
| 2599 | v (format "%s %s" | 2599 | v (format "%s %s" |
| 2600 | (if parents "mkdir -p" "mkdir") | 2600 | (if parents "mkdir -p" "mkdir") |
| 2601 | (tramp-shell-quote-argument localname)) | 2601 | (tramp-shell-quote-argument localname)) |
| 2602 | "Couldn't make directory %s" dir)))) | 2602 | "Couldn’t make directory %s" dir)))) |
| 2603 | 2603 | ||
| 2604 | (defun tramp-sh-handle-delete-directory (directory &optional recursive) | 2604 | (defun tramp-sh-handle-delete-directory (directory &optional recursive) |
| 2605 | "Like `delete-directory' for Tramp files." | 2605 | "Like `delete-directory' for Tramp files." |
| @@ -2611,7 +2611,7 @@ The method used must be an out-of-band method." | |||
| 2611 | v (format "cd / && %s %s" | 2611 | v (format "cd / && %s %s" |
| 2612 | (if recursive "rm -rf" "rmdir") | 2612 | (if recursive "rm -rf" "rmdir") |
| 2613 | (tramp-shell-quote-argument localname)) | 2613 | (tramp-shell-quote-argument localname)) |
| 2614 | "Couldn't delete %s" directory))) | 2614 | "Couldn’t delete %s" directory))) |
| 2615 | 2615 | ||
| 2616 | (defun tramp-sh-handle-delete-file (filename &optional trash) | 2616 | (defun tramp-sh-handle-delete-file (filename &optional trash) |
| 2617 | "Like `delete-file' for Tramp files." | 2617 | "Like `delete-file' for Tramp files." |
| @@ -2623,7 +2623,7 @@ The method used must be an out-of-band method." | |||
| 2623 | v (format "%s %s" | 2623 | v (format "%s %s" |
| 2624 | (or (and trash (tramp-get-remote-trash v)) "rm -f") | 2624 | (or (and trash (tramp-get-remote-trash v)) "rm -f") |
| 2625 | (tramp-shell-quote-argument localname)) | 2625 | (tramp-shell-quote-argument localname)) |
| 2626 | "Couldn't delete %s" filename))) | 2626 | "Couldn’t delete %s" filename))) |
| 2627 | 2627 | ||
| 2628 | ;; Dired. | 2628 | ;; Dired. |
| 2629 | 2629 | ||
| @@ -2734,7 +2734,7 @@ This is like `dired-recursive-delete-directory' for Tramp files." | |||
| 2734 | (when wildcard | 2734 | (when wildcard |
| 2735 | (setq switches (concat switches " " wildcard))) | 2735 | (setq switches (concat switches " " wildcard))) |
| 2736 | (tramp-message | 2736 | (tramp-message |
| 2737 | v 4 "Inserting directory `ls %s %s', wildcard %s, fulldir %s" | 2737 | v 4 "Inserting directory ‘ls %s %s’, wildcard %s, fulldir %s" |
| 2738 | switches filename (if wildcard "yes" "no") | 2738 | switches filename (if wildcard "yes" "no") |
| 2739 | (if full-directory-p "yes" "no")) | 2739 | (if full-directory-p "yes" "no")) |
| 2740 | ;; If `full-directory-p', we just say `ls -l FILENAME'. | 2740 | ;; If `full-directory-p', we just say `ls -l FILENAME'. |
| @@ -2753,7 +2753,7 @@ This is like `dired-recursive-delete-directory' for Tramp files." | |||
| 2753 | (format "cd %s" (tramp-shell-quote-argument | 2753 | (format "cd %s" (tramp-shell-quote-argument |
| 2754 | (tramp-run-real-handler | 2754 | (tramp-run-real-handler |
| 2755 | 'file-name-directory (list localname)))) | 2755 | 'file-name-directory (list localname)))) |
| 2756 | "Couldn't `cd %s'" | 2756 | "Couldn’t ‘cd %s’" |
| 2757 | (tramp-shell-quote-argument | 2757 | (tramp-shell-quote-argument |
| 2758 | (tramp-run-real-handler 'file-name-directory (list localname)))) | 2758 | (tramp-run-real-handler 'file-name-directory (list localname)))) |
| 2759 | (tramp-send-command | 2759 | (tramp-send-command |
| @@ -2897,7 +2897,7 @@ the result will be a local, non-Tramp, file name." | |||
| 2897 | (unless (memq (process-status proc) '(run open)) | 2897 | (unless (memq (process-status proc) '(run open)) |
| 2898 | (let ((vec (tramp-get-connection-property proc "vector" nil))) | 2898 | (let ((vec (tramp-get-connection-property proc "vector" nil))) |
| 2899 | (when vec | 2899 | (when vec |
| 2900 | (tramp-message vec 5 "Sentinel called: `%S' `%s'" proc event) | 2900 | (tramp-message vec 5 "Sentinel called: ‘%S’ ‘%s’" proc event) |
| 2901 | (tramp-flush-connection-property proc) | 2901 | (tramp-flush-connection-property proc) |
| 2902 | (tramp-flush-directory-property vec ""))))) | 2902 | (tramp-flush-directory-property vec ""))))) |
| 2903 | 2903 | ||
| @@ -3008,7 +3008,7 @@ the result will be a local, non-Tramp, file name." | |||
| 3008 | (tramp-get-connection-process v) 'remote-tty) | 3008 | (tramp-get-connection-process v) 'remote-tty) |
| 3009 | (tramp-error | 3009 | (tramp-error |
| 3010 | v 'file-error | 3010 | v 'file-error |
| 3011 | "pty association is not supported for `%s'" name)))) | 3011 | "pty association is not supported for ‘%s’" name)))) |
| 3012 | (let ((p (tramp-get-connection-process v))) | 3012 | (let ((p (tramp-get-connection-process v))) |
| 3013 | ;; Set query flag and process marker for this | 3013 | ;; Set query flag and process marker for this |
| 3014 | ;; process. We ignore errors, because the process | 3014 | ;; process. We ignore errors, because the process |
| @@ -3157,7 +3157,7 @@ the result will be a local, non-Tramp, file name." | |||
| 3157 | (unless (file-exists-p filename) | 3157 | (unless (file-exists-p filename) |
| 3158 | (tramp-error | 3158 | (tramp-error |
| 3159 | v 'file-error | 3159 | v 'file-error |
| 3160 | "Cannot make local copy of non-existing file `%s'" filename)) | 3160 | "Cannot make local copy of non-existing file ‘%s’" filename)) |
| 3161 | 3161 | ||
| 3162 | (let* ((size (nth 7 (file-attributes (file-truename filename)))) | 3162 | (let* ((size (nth 7 (file-attributes (file-truename filename)))) |
| 3163 | (rem-enc (tramp-get-inline-coding v "remote-encoding" size)) | 3163 | (rem-enc (tramp-get-inline-coding v "remote-encoding" size)) |
| @@ -3176,14 +3176,15 @@ the result will be a local, non-Tramp, file name." | |||
| 3176 | (save-excursion | 3176 | (save-excursion |
| 3177 | (with-tramp-progress-reporter | 3177 | (with-tramp-progress-reporter |
| 3178 | v 3 | 3178 | v 3 |
| 3179 | (format "Encoding remote file `%s' with `%s'" filename rem-enc) | 3179 | (format-message "Encoding remote file ‘%s’ with ‘%s’" |
| 3180 | filename rem-enc) | ||
| 3180 | (tramp-barf-unless-okay | 3181 | (tramp-barf-unless-okay |
| 3181 | v (format rem-enc (tramp-shell-quote-argument localname)) | 3182 | v (format rem-enc (tramp-shell-quote-argument localname)) |
| 3182 | "Encoding remote file failed")) | 3183 | "Encoding remote file failed")) |
| 3183 | 3184 | ||
| 3184 | (with-tramp-progress-reporter | 3185 | (with-tramp-progress-reporter |
| 3185 | v 3 (format "Decoding local file `%s' with `%s'" | 3186 | v 3 (format-message "Decoding local file ‘%s’ with ‘%s’" |
| 3186 | tmpfile loc-dec) | 3187 | tmpfile loc-dec) |
| 3187 | (if (functionp loc-dec) | 3188 | (if (functionp loc-dec) |
| 3188 | ;; If local decoding is a function, we call it. | 3189 | ;; If local decoding is a function, we call it. |
| 3189 | ;; We must disable multibyte, because | 3190 | ;; We must disable multibyte, because |
| @@ -3219,7 +3220,7 @@ the result will be a local, non-Tramp, file name." | |||
| 3219 | 3220 | ||
| 3220 | ;; Oops, I don't know what to do. | 3221 | ;; Oops, I don't know what to do. |
| 3221 | (t (tramp-error | 3222 | (t (tramp-error |
| 3222 | v 'file-error "Wrong method specification for `%s'" method))) | 3223 | v 'file-error "Wrong method specification for ‘%s’" method))) |
| 3223 | 3224 | ||
| 3224 | ;; Error handling. | 3225 | ;; Error handling. |
| 3225 | ((error quit) | 3226 | ((error quit) |
| @@ -3390,8 +3391,9 @@ the result will be a local, non-Tramp, file name." | |||
| 3390 | (set-buffer-multibyte nil) | 3391 | (set-buffer-multibyte nil) |
| 3391 | ;; Use encoding function or command. | 3392 | ;; Use encoding function or command. |
| 3392 | (with-tramp-progress-reporter | 3393 | (with-tramp-progress-reporter |
| 3393 | v 3 (format "Encoding local file `%s' using `%s'" | 3394 | v 3 (format-message |
| 3394 | tmpfile loc-enc) | 3395 | "Encoding local file ‘%s’ using ‘%s’" |
| 3396 | tmpfile loc-enc) | ||
| 3395 | (if (functionp loc-enc) | 3397 | (if (functionp loc-enc) |
| 3396 | ;; The following `let' is a workaround for | 3398 | ;; The following `let' is a workaround for |
| 3397 | ;; the base64.el that comes with pgnus-0.84. | 3399 | ;; the base64.el that comes with pgnus-0.84. |
| @@ -3412,16 +3414,17 @@ the result will be a local, non-Tramp, file name." | |||
| 3412 | loc-enc tmpfile t)) | 3414 | loc-enc tmpfile t)) |
| 3413 | (tramp-error | 3415 | (tramp-error |
| 3414 | v 'file-error | 3416 | v 'file-error |
| 3415 | (concat "Cannot write to `%s', " | 3417 | (concat "Cannot write to ‘%s’, " |
| 3416 | "local encoding command `%s' failed") | 3418 | "local encoding command ‘%s’ failed") |
| 3417 | filename loc-enc)))) | 3419 | filename loc-enc)))) |
| 3418 | 3420 | ||
| 3419 | ;; Send buffer into remote decoding command which | 3421 | ;; Send buffer into remote decoding command which |
| 3420 | ;; writes to remote file. Because this happens on | 3422 | ;; writes to remote file. Because this happens on |
| 3421 | ;; the remote host, we cannot use the function. | 3423 | ;; the remote host, we cannot use the function. |
| 3422 | (with-tramp-progress-reporter | 3424 | (with-tramp-progress-reporter |
| 3423 | v 3 (format "Decoding remote file `%s' using `%s'" | 3425 | v 3 (format-message |
| 3424 | filename rem-dec) | 3426 | "Decoding remote file ‘%s’ using ‘%s’" |
| 3427 | filename rem-dec) | ||
| 3425 | (goto-char (point-max)) | 3428 | (goto-char (point-max)) |
| 3426 | (unless (bolp) (newline)) | 3429 | (unless (bolp) (newline)) |
| 3427 | (tramp-send-command | 3430 | (tramp-send-command |
| @@ -3434,7 +3437,7 @@ the result will be a local, non-Tramp, file name." | |||
| 3434 | tramp-end-of-heredoc)) | 3437 | tramp-end-of-heredoc)) |
| 3435 | (tramp-barf-unless-okay | 3438 | (tramp-barf-unless-okay |
| 3436 | v nil | 3439 | v nil |
| 3437 | "Couldn't write region to `%s', decode using `%s' failed" | 3440 | "Couldn’t write region to ‘%s’, decode using ‘%s’ failed" |
| 3438 | filename rem-dec) | 3441 | filename rem-dec) |
| 3439 | ;; When `file-precious-flag' is set, the region is | 3442 | ;; When `file-precious-flag' is set, the region is |
| 3440 | ;; written to a temporary file. Check that the | 3443 | ;; written to a temporary file. Check that the |
| @@ -3457,8 +3460,8 @@ the result will be a local, non-Tramp, file name." | |||
| 3457 | (buffer-string)))) | 3460 | (buffer-string)))) |
| 3458 | (tramp-error | 3461 | (tramp-error |
| 3459 | v 'file-error | 3462 | v 'file-error |
| 3460 | (concat "Couldn't write region to `%s'," | 3463 | (concat "Couldn’t write region to ‘%s’," |
| 3461 | " decode using `%s' failed") | 3464 | " decode using ‘%s’ failed") |
| 3462 | filename rem-dec))))) | 3465 | filename rem-dec))))) |
| 3463 | 3466 | ||
| 3464 | ;; Save exit. | 3467 | ;; Save exit. |
| @@ -3468,7 +3471,7 @@ the result will be a local, non-Tramp, file name." | |||
| 3468 | (t | 3471 | (t |
| 3469 | (tramp-error | 3472 | (tramp-error |
| 3470 | v 'file-error | 3473 | v 'file-error |
| 3471 | (concat "Method `%s' should specify both encoding and " | 3474 | (concat "Method ‘%s’ should specify both encoding and " |
| 3472 | "decoding command or an scp program") | 3475 | "decoding command or an scp program") |
| 3473 | method)))) | 3476 | method)))) |
| 3474 | 3477 | ||
| @@ -3522,7 +3525,7 @@ the result will be a local, non-Tramp, file name." | |||
| 3522 | (tramp-compat-with-temp-message "" | 3525 | (tramp-compat-with-temp-message "" |
| 3523 | (with-parsed-tramp-file-name file nil | 3526 | (with-parsed-tramp-file-name file nil |
| 3524 | (with-tramp-progress-reporter | 3527 | (with-tramp-progress-reporter |
| 3525 | v 3 (format "Checking `vc-registered' for %s" file) | 3528 | v 3 (format-message "Checking ‘vc-registered’ for %s" file) |
| 3526 | 3529 | ||
| 3527 | ;; There could be new files, created by the vc backend. We | 3530 | ;; There could be new files, created by the vc backend. We |
| 3528 | ;; cannot reuse the old cache entries, therefore. In | 3531 | ;; cannot reuse the old cache entries, therefore. In |
| @@ -3682,9 +3685,9 @@ Fall back to normal file name handler if no Tramp handler exists." | |||
| 3682 | (if (not (processp p)) | 3685 | (if (not (processp p)) |
| 3683 | (tramp-error | 3686 | (tramp-error |
| 3684 | v 'file-notify-error | 3687 | v 'file-notify-error |
| 3685 | "`%s' failed to start on remote host" | 3688 | "‘%s’ failed to start on remote host" |
| 3686 | (mapconcat 'identity sequence " ")) | 3689 | (mapconcat 'identity sequence " ")) |
| 3687 | (tramp-message v 6 "Run `%s', %S" (mapconcat 'identity sequence " ") p) | 3690 | (tramp-message v 6 "Run ‘%s’, %S" (mapconcat 'identity sequence " ") p) |
| 3688 | (tramp-set-connection-property p "vector" v) | 3691 | (tramp-set-connection-property p "vector" v) |
| 3689 | (tramp-compat-set-process-query-on-exit-flag p nil) | 3692 | (tramp-compat-set-process-query-on-exit-flag p nil) |
| 3690 | (set-process-filter p filter) | 3693 | (set-process-filter p filter) |
| @@ -3770,7 +3773,8 @@ Only send the definition if it has not already been done." | |||
| 3770 | (let ((scripts (tramp-get-connection-property | 3773 | (let ((scripts (tramp-get-connection-property |
| 3771 | (tramp-get-connection-process vec) "scripts" nil))) | 3774 | (tramp-get-connection-process vec) "scripts" nil))) |
| 3772 | (unless (member name scripts) | 3775 | (unless (member name scripts) |
| 3773 | (with-tramp-progress-reporter vec 5 (format "Sending script `%s'" name) | 3776 | (with-tramp-progress-reporter |
| 3777 | vec 5 (format-message "Sending script ‘%s’" name) | ||
| 3774 | ;; In bash, leading TABs like in `tramp-vc-registered-read-file-names' | 3778 | ;; In bash, leading TABs like in `tramp-vc-registered-read-file-names' |
| 3775 | ;; could result in unwanted command expansion. Avoid this. | 3779 | ;; could result in unwanted command expansion. Avoid this. |
| 3776 | (setq script (tramp-compat-replace-regexp-in-string | 3780 | (setq script (tramp-compat-replace-regexp-in-string |
| @@ -3938,13 +3942,13 @@ file exists and nonzero exit status otherwise." | |||
| 3938 | (not (tramp-send-command-and-check | 3942 | (not (tramp-send-command-and-check |
| 3939 | vec (format "%s %s" result nonexistent)))))) | 3943 | vec (format "%s %s" result nonexistent)))))) |
| 3940 | (tramp-error | 3944 | (tramp-error |
| 3941 | vec 'file-error "Couldn't find command to check if file exists")) | 3945 | vec 'file-error "Couldn’t find command to check if file exists")) |
| 3942 | result)) | 3946 | result)) |
| 3943 | 3947 | ||
| 3944 | (defun tramp-open-shell (vec shell) | 3948 | (defun tramp-open-shell (vec shell) |
| 3945 | "Opens shell SHELL." | 3949 | "Opens shell SHELL." |
| 3946 | (with-tramp-progress-reporter | 3950 | (with-tramp-progress-reporter |
| 3947 | vec 5 (format "Opening remote shell `%s'" shell) | 3951 | vec 5 (format-message "Opening remote shell ‘%s’" shell) |
| 3948 | ;; Find arguments for this shell. | 3952 | ;; Find arguments for this shell. |
| 3949 | (let ((alist tramp-sh-extra-args) | 3953 | (let ((alist tramp-sh-extra-args) |
| 3950 | item extra-args) | 3954 | item extra-args) |
| @@ -4008,8 +4012,8 @@ file exists and nonzero exit status otherwise." | |||
| 4008 | (tramp-message | 4012 | (tramp-message |
| 4009 | vec 2 | 4013 | vec 2 |
| 4010 | (concat | 4014 | (concat |
| 4011 | "Couldn't find a remote shell which groks tilde " | 4015 | "Couldn’t find a remote shell which groks tilde " |
| 4012 | "expansion, using `%s'") | 4016 | "expansion, using ‘%s’") |
| 4013 | default-shell))) | 4017 | default-shell))) |
| 4014 | 4018 | ||
| 4015 | default-shell))) | 4019 | default-shell))) |
| @@ -4017,7 +4021,7 @@ file exists and nonzero exit status otherwise." | |||
| 4017 | ;; Open a new shell if needed. | 4021 | ;; Open a new shell if needed. |
| 4018 | (unless (string-equal shell default-shell) | 4022 | (unless (string-equal shell default-shell) |
| 4019 | (tramp-message | 4023 | (tramp-message |
| 4020 | vec 5 "Starting remote shell `%s' for tilde expansion" shell) | 4024 | vec 5 "Starting remote shell ‘%s’ for tilde expansion" shell) |
| 4021 | (tramp-open-shell vec shell))))) | 4025 | (tramp-open-shell vec shell))))) |
| 4022 | 4026 | ||
| 4023 | ;; Utility functions. | 4027 | ;; Utility functions. |
| @@ -4093,7 +4097,7 @@ process to set up. VEC specifies the connection." | |||
| 4093 | (tramp-compat-funcall | 4097 | (tramp-compat-funcall |
| 4094 | 'set-buffer-process-coding-system cs-decode cs-encode) | 4098 | 'set-buffer-process-coding-system cs-decode cs-encode) |
| 4095 | (tramp-message | 4099 | (tramp-message |
| 4096 | vec 5 "Setting coding system to `%s' and `%s'" cs-decode cs-encode)) | 4100 | vec 5 "Setting coding system to ‘%s’ and ‘%s’" cs-decode cs-encode)) |
| 4097 | ;; Look for ^M and do something useful if found. | 4101 | ;; Look for ^M and do something useful if found. |
| 4098 | (when (search-forward "\r" nil t) | 4102 | (when (search-forward "\r" nil t) |
| 4099 | ;; We have found a ^M but cannot frob the process coding system | 4103 | ;; We have found a ^M but cannot frob the process coding system |
| @@ -4116,7 +4120,7 @@ process to set up. VEC specifies the connection." | |||
| 4116 | (when (and (stringp old-uname) (not (string-equal old-uname new-uname))) | 4120 | (when (and (stringp old-uname) (not (string-equal old-uname new-uname))) |
| 4117 | (tramp-message | 4121 | (tramp-message |
| 4118 | vec 3 | 4122 | vec 3 |
| 4119 | "Connection reset, because remote host changed from `%s' to `%s'" | 4123 | "Connection reset, because remote host changed from ‘%s’ to ‘%s’" |
| 4120 | old-uname new-uname) | 4124 | old-uname new-uname) |
| 4121 | ;; We want to keep the password. | 4125 | ;; We want to keep the password. |
| 4122 | (tramp-cleanup-connection vec t t) | 4126 | (tramp-cleanup-connection vec t t) |
| @@ -4134,7 +4138,7 @@ process to set up. VEC specifies the connection." | |||
| 4134 | tramp-chunksize) | 4138 | tramp-chunksize) |
| 4135 | (t | 4139 | (t |
| 4136 | (tramp-message | 4140 | (tramp-message |
| 4137 | vec 5 "Checking remote host type for `send-process-string' bug") | 4141 | vec 5 "Checking remote host type for ‘send-process-string’ bug") |
| 4138 | (if (string-match | 4142 | (if (string-match |
| 4139 | "^FreeBSD" (tramp-get-connection-property vec "uname" "")) | 4143 | "^FreeBSD" (tramp-get-connection-property vec "uname" "")) |
| 4140 | 500 0)))) | 4144 | 500 0)))) |
| @@ -4300,17 +4304,17 @@ Goes through the list `tramp-local-coding-commands' and | |||
| 4300 | ;; corresponding command has to work locally. | 4304 | ;; corresponding command has to work locally. |
| 4301 | (if (not (stringp loc-enc)) | 4305 | (if (not (stringp loc-enc)) |
| 4302 | (tramp-message | 4306 | (tramp-message |
| 4303 | vec 5 "Checking local encoding function `%s'" loc-enc) | 4307 | vec 5 "Checking local encoding function ‘%s’" loc-enc) |
| 4304 | (tramp-message | 4308 | (tramp-message |
| 4305 | vec 5 "Checking local encoding command `%s' for sanity" loc-enc) | 4309 | vec 5 "Checking local encoding command ‘%s’ for sanity" loc-enc) |
| 4306 | (unless (zerop (tramp-call-local-coding-command | 4310 | (unless (zerop (tramp-call-local-coding-command |
| 4307 | loc-enc nil nil)) | 4311 | loc-enc nil nil)) |
| 4308 | (throw 'wont-work-local nil))) | 4312 | (throw 'wont-work-local nil))) |
| 4309 | (if (not (stringp loc-dec)) | 4313 | (if (not (stringp loc-dec)) |
| 4310 | (tramp-message | 4314 | (tramp-message |
| 4311 | vec 5 "Checking local decoding function `%s'" loc-dec) | 4315 | vec 5 "Checking local decoding function ‘%s’" loc-dec) |
| 4312 | (tramp-message | 4316 | (tramp-message |
| 4313 | vec 5 "Checking local decoding command `%s' for sanity" loc-dec) | 4317 | vec 5 "Checking local decoding command ‘%s’ for sanity" loc-dec) |
| 4314 | (unless (zerop (tramp-call-local-coding-command | 4318 | (unless (zerop (tramp-call-local-coding-command |
| 4315 | loc-dec nil nil)) | 4319 | loc-dec nil nil)) |
| 4316 | (throw 'wont-work-local nil))) | 4320 | (throw 'wont-work-local nil))) |
| @@ -4325,7 +4329,7 @@ Goes through the list `tramp-local-coding-commands' and | |||
| 4325 | ;; Check the remote test command if exists. | 4329 | ;; Check the remote test command if exists. |
| 4326 | (when (stringp rem-test) | 4330 | (when (stringp rem-test) |
| 4327 | (tramp-message | 4331 | (tramp-message |
| 4328 | vec 5 "Checking remote test command `%s'" rem-test) | 4332 | vec 5 "Checking remote test command ‘%s’" rem-test) |
| 4329 | (unless (tramp-send-command-and-check vec rem-test t) | 4333 | (unless (tramp-send-command-and-check vec rem-test t) |
| 4330 | (throw 'wont-work-remote nil))) | 4334 | (throw 'wont-work-remote nil))) |
| 4331 | ;; Check if remote perl exists when necessary. | 4335 | ;; Check if remote perl exists when necessary. |
| @@ -4348,7 +4352,7 @@ Goes through the list `tramp-local-coding-commands' and | |||
| 4348 | (setq rem-enc name))) | 4352 | (setq rem-enc name))) |
| 4349 | (tramp-message | 4353 | (tramp-message |
| 4350 | vec 5 | 4354 | vec 5 |
| 4351 | "Checking remote encoding command `%s' for sanity" rem-enc) | 4355 | "Checking remote encoding command ‘%s’ for sanity" rem-enc) |
| 4352 | (unless (tramp-send-command-and-check | 4356 | (unless (tramp-send-command-and-check |
| 4353 | vec (format "%s </dev/null" rem-enc) t) | 4357 | vec (format "%s </dev/null" rem-enc) t) |
| 4354 | (throw 'wont-work-remote nil)) | 4358 | (throw 'wont-work-remote nil)) |
| @@ -4376,7 +4380,7 @@ Goes through the list `tramp-local-coding-commands' and | |||
| 4376 | (setq rem-dec name))) | 4380 | (setq rem-dec name))) |
| 4377 | (tramp-message | 4381 | (tramp-message |
| 4378 | vec 5 | 4382 | vec 5 |
| 4379 | "Checking remote decoding command `%s' for sanity" rem-dec) | 4383 | "Checking remote decoding command ‘%s’ for sanity" rem-dec) |
| 4380 | (unless (tramp-send-command-and-check | 4384 | (unless (tramp-send-command-and-check |
| 4381 | vec | 4385 | vec |
| 4382 | (format "echo %s | %s | %s" magic rem-enc rem-dec) | 4386 | (format "echo %s | %s | %s" magic rem-enc rem-dec) |
| @@ -4396,13 +4400,13 @@ Goes through the list `tramp-local-coding-commands' and | |||
| 4396 | (when found | 4400 | (when found |
| 4397 | ;; Set connection properties. Since the commands are risky | 4401 | ;; Set connection properties. Since the commands are risky |
| 4398 | ;; (due to output direction), we cache them in the process cache. | 4402 | ;; (due to output direction), we cache them in the process cache. |
| 4399 | (tramp-message vec 5 "Using local encoding `%s'" loc-enc) | 4403 | (tramp-message vec 5 "Using local encoding ‘%s’" loc-enc) |
| 4400 | (tramp-set-connection-property p "local-encoding" loc-enc) | 4404 | (tramp-set-connection-property p "local-encoding" loc-enc) |
| 4401 | (tramp-message vec 5 "Using local decoding `%s'" loc-dec) | 4405 | (tramp-message vec 5 "Using local decoding ‘%s’" loc-dec) |
| 4402 | (tramp-set-connection-property p "local-decoding" loc-dec) | 4406 | (tramp-set-connection-property p "local-decoding" loc-dec) |
| 4403 | (tramp-message vec 5 "Using remote encoding `%s'" rem-enc) | 4407 | (tramp-message vec 5 "Using remote encoding ‘%s’" rem-enc) |
| 4404 | (tramp-set-connection-property p "remote-encoding" rem-enc) | 4408 | (tramp-set-connection-property p "remote-encoding" rem-enc) |
| 4405 | (tramp-message vec 5 "Using remote decoding `%s'" rem-dec) | 4409 | (tramp-message vec 5 "Using remote decoding ‘%s’" rem-dec) |
| 4406 | (tramp-set-connection-property p "remote-decoding" rem-dec))))) | 4410 | (tramp-set-connection-property p "remote-decoding" rem-dec))))) |
| 4407 | 4411 | ||
| 4408 | (defun tramp-call-local-coding-command (cmd input output) | 4412 | (defun tramp-call-local-coding-command (cmd input output) |
| @@ -4450,7 +4454,7 @@ Goes through the list `tramp-inline-compress-commands'." | |||
| 4450 | decompress (nth 1 item)) | 4454 | decompress (nth 1 item)) |
| 4451 | (tramp-message | 4455 | (tramp-message |
| 4452 | vec 5 | 4456 | vec 5 |
| 4453 | "Checking local compress commands `%s', `%s' for sanity" | 4457 | "Checking local compress commands ‘%s’, ‘%s’ for sanity" |
| 4454 | compress decompress) | 4458 | compress decompress) |
| 4455 | (unless | 4459 | (unless |
| 4456 | (zerop | 4460 | (zerop |
| @@ -4466,7 +4470,7 @@ Goes through the list `tramp-inline-compress-commands'." | |||
| 4466 | (throw 'next nil)) | 4470 | (throw 'next nil)) |
| 4467 | (tramp-message | 4471 | (tramp-message |
| 4468 | vec 5 | 4472 | vec 5 |
| 4469 | "Checking remote compress commands `%s', `%s' for sanity" | 4473 | "Checking remote compress commands ‘%s’, ‘%s’ for sanity" |
| 4470 | compress decompress) | 4474 | compress decompress) |
| 4471 | (unless (tramp-send-command-and-check | 4475 | (unless (tramp-send-command-and-check |
| 4472 | vec (format "echo %s | %s | %s" magic compress decompress) t) | 4476 | vec (format "echo %s | %s | %s" magic compress decompress) t) |
| @@ -4480,16 +4484,16 @@ Goes through the list `tramp-inline-compress-commands'." | |||
| 4480 | ;; risky (due to output direction), we cache them in the | 4484 | ;; risky (due to output direction), we cache them in the |
| 4481 | ;; process cache. | 4485 | ;; process cache. |
| 4482 | (tramp-message | 4486 | (tramp-message |
| 4483 | vec 5 "Using inline transfer compress command `%s'" compress) | 4487 | vec 5 "Using inline transfer compress command ‘%s’" compress) |
| 4484 | (tramp-set-connection-property p "inline-compress" compress) | 4488 | (tramp-set-connection-property p "inline-compress" compress) |
| 4485 | (tramp-message | 4489 | (tramp-message |
| 4486 | vec 5 "Using inline transfer decompress command `%s'" decompress) | 4490 | vec 5 "Using inline transfer decompress command ‘%s’" decompress) |
| 4487 | (tramp-set-connection-property p "inline-decompress" decompress)) | 4491 | (tramp-set-connection-property p "inline-decompress" decompress)) |
| 4488 | 4492 | ||
| 4489 | (tramp-set-connection-property p "inline-compress" nil) | 4493 | (tramp-set-connection-property p "inline-compress" nil) |
| 4490 | (tramp-set-connection-property p "inline-decompress" nil) | 4494 | (tramp-set-connection-property p "inline-decompress" nil) |
| 4491 | (tramp-message | 4495 | (tramp-message |
| 4492 | vec 2 "Couldn't find an inline transfer compress command"))))) | 4496 | vec 2 "Couldn’t find an inline transfer compress command"))))) |
| 4493 | 4497 | ||
| 4494 | (defun tramp-compute-multi-hops (vec) | 4498 | (defun tramp-compute-multi-hops (vec) |
| 4495 | "Expands VEC according to `tramp-default-proxies-alist'. | 4499 | "Expands VEC according to `tramp-default-proxies-alist'. |
| @@ -4562,7 +4566,7 @@ Gateway hops are already opened." | |||
| 4562 | (unless (tramp-file-name-port hop) | 4566 | (unless (tramp-file-name-port hop) |
| 4563 | (tramp-error | 4567 | (tramp-error |
| 4564 | vec 'file-error | 4568 | vec 'file-error |
| 4565 | "Connection `%s' is not supported for gateway access." hop)) | 4569 | "Connection ‘%s’ is not supported for gateway access." hop)) |
| 4566 | ;; Open the gateway connection. | 4570 | ;; Open the gateway connection. |
| 4567 | (push | 4571 | (push |
| 4568 | (vector | 4572 | (vector |
| @@ -4584,7 +4588,7 @@ Gateway hops are already opened." | |||
| 4584 | (tramp-get-method-parameter item 'tramp-copy-program)) | 4588 | (tramp-get-method-parameter item 'tramp-copy-program)) |
| 4585 | (tramp-error | 4589 | (tramp-error |
| 4586 | vec 'file-error | 4590 | vec 'file-error |
| 4587 | "Method `%s' is not supported for multi-hops." | 4591 | "Method ‘%s’ is not supported for multi-hops." |
| 4588 | (tramp-file-name-method item))))) | 4592 | (tramp-file-name-method item))))) |
| 4589 | 4593 | ||
| 4590 | ;; In case the host name is not used for the remote shell | 4594 | ;; In case the host name is not used for the remote shell |
| @@ -4604,7 +4608,7 @@ Gateway hops are already opened." | |||
| 4604 | (string-match tramp-local-host-regexp host)) | 4608 | (string-match tramp-local-host-regexp host)) |
| 4605 | (tramp-error | 4609 | (tramp-error |
| 4606 | v 'file-error | 4610 | v 'file-error |
| 4607 | "Host `%s' looks like a remote host, `%s' can only use the local host" | 4611 | "Host ‘%s’ looks like a remote host, ‘%s’ can only use the local host" |
| 4608 | host method))) | 4612 | host method))) |
| 4609 | 4613 | ||
| 4610 | ;; Result. | 4614 | ;; Result. |
| @@ -4764,7 +4768,7 @@ connection if a previous connection has died for some reason." | |||
| 4764 | ;; Check whether process is alive. | 4768 | ;; Check whether process is alive. |
| 4765 | (tramp-barf-if-no-shell-prompt | 4769 | (tramp-barf-if-no-shell-prompt |
| 4766 | p 10 | 4770 | p 10 |
| 4767 | "Couldn't find local shell prompt for %s" tramp-encoding-shell) | 4771 | "Couldn’t find local shell prompt for %s" tramp-encoding-shell) |
| 4768 | 4772 | ||
| 4769 | ;; Now do all the connections as specified. | 4773 | ;; Now do all the connections as specified. |
| 4770 | (while target-alist | 4774 | (while target-alist |
| @@ -4884,13 +4888,13 @@ connection if a previous connection has died for some reason." | |||
| 4884 | (when r-shell " && exit || exit"))) | 4888 | (when r-shell " && exit || exit"))) |
| 4885 | 4889 | ||
| 4886 | ;; Send the command. | 4890 | ;; Send the command. |
| 4887 | (tramp-message vec 3 "Sending command `%s'" command) | 4891 | (tramp-message vec 3 "Sending command ‘%s’" command) |
| 4888 | (tramp-send-command vec command t t) | 4892 | (tramp-send-command vec command t t) |
| 4889 | (tramp-process-actions | 4893 | (tramp-process-actions |
| 4890 | p vec pos tramp-actions-before-shell | 4894 | p vec pos tramp-actions-before-shell |
| 4891 | (or connection-timeout tramp-connection-timeout)) | 4895 | (or connection-timeout tramp-connection-timeout)) |
| 4892 | (tramp-message | 4896 | (tramp-message |
| 4893 | vec 3 "Found remote shell prompt on `%s'" l-host)) | 4897 | vec 3 "Found remote shell prompt on ‘%s’" l-host)) |
| 4894 | ;; Next hop. | 4898 | ;; Next hop. |
| 4895 | (setq options "" | 4899 | (setq options "" |
| 4896 | target-alist (cdr target-alist))) | 4900 | target-alist (cdr target-alist))) |
| @@ -4936,7 +4940,7 @@ function waits for output unless NOOUTPUT is set." | |||
| 4936 | "Wait for output from remote command." | 4940 | "Wait for output from remote command." |
| 4937 | (unless (buffer-live-p (process-buffer proc)) | 4941 | (unless (buffer-live-p (process-buffer proc)) |
| 4938 | (delete-process proc) | 4942 | (delete-process proc) |
| 4939 | (tramp-error proc 'file-error "Process `%s' not available, try again" proc)) | 4943 | (tramp-error proc 'file-error "Process ‘%s’ not available, try again" proc)) |
| 4940 | (with-current-buffer (process-buffer proc) | 4944 | (with-current-buffer (process-buffer proc) |
| 4941 | (let* (;; Initially, `tramp-end-of-output' is "#$ ". There might | 4945 | (let* (;; Initially, `tramp-end-of-output' is "#$ ". There might |
| 4942 | ;; be leading escape sequences, which must be ignored. | 4946 | ;; be leading escape sequences, which must be ignored. |
| @@ -4961,11 +4965,11 @@ function waits for output unless NOOUTPUT is set." | |||
| 4961 | (if timeout | 4965 | (if timeout |
| 4962 | (tramp-error | 4966 | (tramp-error |
| 4963 | proc 'file-error | 4967 | proc 'file-error |
| 4964 | "[[Remote prompt `%s' not found in %d secs]]" | 4968 | "[[Remote prompt ‘%s’ not found in %d secs]]" |
| 4965 | tramp-end-of-output timeout) | 4969 | tramp-end-of-output timeout) |
| 4966 | (tramp-error | 4970 | (tramp-error |
| 4967 | proc 'file-error | 4971 | proc 'file-error |
| 4968 | "[[Remote prompt `%s' not found]]" tramp-end-of-output))) | 4972 | "[[Remote prompt ‘%s’ not found]]" tramp-end-of-output))) |
| 4969 | ;; Return value is whether end-of-output sentinel was found. | 4973 | ;; Return value is whether end-of-output sentinel was found. |
| 4970 | found))) | 4974 | found))) |
| 4971 | 4975 | ||
| @@ -4990,7 +4994,7 @@ DONT-SUPPRESS-ERR is non-nil, stderr won't be sent to /dev/null." | |||
| 4990 | (goto-char (point-max)) | 4994 | (goto-char (point-max)) |
| 4991 | (unless (re-search-backward "tramp_exit_status [0-9]+" nil t) | 4995 | (unless (re-search-backward "tramp_exit_status [0-9]+" nil t) |
| 4992 | (tramp-error | 4996 | (tramp-error |
| 4993 | vec 'file-error "Couldn't find exit status of `%s'" command)) | 4997 | vec 'file-error "Couldn’t find exit status of ‘%s’" command)) |
| 4994 | (skip-chars-forward "^ ") | 4998 | (skip-chars-forward "^ ") |
| 4995 | (prog1 | 4999 | (prog1 |
| 4996 | (zerop (read (current-buffer))) | 5000 | (zerop (read (current-buffer))) |
| @@ -5012,7 +5016,7 @@ raises an error." | |||
| 5012 | (when (if noerror | 5016 | (when (if noerror |
| 5013 | (tramp-send-command-and-check vec command) | 5017 | (tramp-send-command-and-check vec command) |
| 5014 | (tramp-barf-unless-okay | 5018 | (tramp-barf-unless-okay |
| 5015 | vec command "`%s' returns with error" command)) | 5019 | vec command "‘%s’ returns with error" command)) |
| 5016 | (with-current-buffer (tramp-get-connection-buffer vec) | 5020 | (with-current-buffer (tramp-get-connection-buffer vec) |
| 5017 | (goto-char (point-min)) | 5021 | (goto-char (point-min)) |
| 5018 | ;; Read the marker. | 5022 | ;; Read the marker. |
| @@ -5022,7 +5026,7 @@ raises an error." | |||
| 5022 | (error (unless noerror | 5026 | (error (unless noerror |
| 5023 | (tramp-error | 5027 | (tramp-error |
| 5024 | vec 'file-error | 5028 | vec 'file-error |
| 5025 | "`%s' does not return the marker `%s': `%s'" | 5029 | "‘%s’ does not return the marker ‘%s’: ‘%s’" |
| 5026 | command marker (buffer-string)))))) | 5030 | command marker (buffer-string)))))) |
| 5027 | ;; Read the expression. | 5031 | ;; Read the expression. |
| 5028 | (condition-case nil | 5032 | (condition-case nil |
| @@ -5033,7 +5037,7 @@ raises an error." | |||
| 5033 | (error (unless noerror | 5037 | (error (unless noerror |
| 5034 | (tramp-error | 5038 | (tramp-error |
| 5035 | vec 'file-error | 5039 | vec 'file-error |
| 5036 | "`%s' does not return a valid Lisp expression: `%s'" | 5040 | "‘%s’ does not return a valid Lisp expression: ‘%s’" |
| 5037 | command (buffer-string)))))))) | 5041 | command (buffer-string)))))))) |
| 5038 | 5042 | ||
| 5039 | (defun tramp-convert-file-attributes (vec attr) | 5043 | (defun tramp-convert-file-attributes (vec attr) |
| @@ -5177,7 +5181,7 @@ Return ATTR." | |||
| 5177 | (progn | 5181 | (progn |
| 5178 | (tramp-message | 5182 | (tramp-message |
| 5179 | vec 3 | 5183 | vec 3 |
| 5180 | "`getconf PATH' not successful, using default value \"%s\"." | 5184 | "‘getconf PATH’ not successful, using default value \"%s\"." |
| 5181 | "/bin:/usr/bin") | 5185 | "/bin:/usr/bin") |
| 5182 | "/bin:/usr/bin")))) | 5186 | "/bin:/usr/bin")))) |
| 5183 | (own-remote-path | 5187 | (own-remote-path |
| @@ -5257,7 +5261,7 @@ Return ATTR." | |||
| 5257 | 5261 | ||
| 5258 | (defun tramp-get-ls-command (vec) | 5262 | (defun tramp-get-ls-command (vec) |
| 5259 | (with-tramp-connection-property vec "ls" | 5263 | (with-tramp-connection-property vec "ls" |
| 5260 | (tramp-message vec 5 "Finding a suitable `ls' command") | 5264 | (tramp-message vec 5 "Finding a suitable ‘ls’ command") |
| 5261 | (or | 5265 | (or |
| 5262 | (catch 'ls-found | 5266 | (catch 'ls-found |
| 5263 | (dolist (cmd '("ls" "gnuls" "gls")) | 5267 | (dolist (cmd '("ls" "gnuls" "gls")) |
| @@ -5278,12 +5282,12 @@ Return ATTR." | |||
| 5278 | (setq result (concat result " --color=never"))) | 5282 | (setq result (concat result " --color=never"))) |
| 5279 | (throw 'ls-found result)) | 5283 | (throw 'ls-found result)) |
| 5280 | (setq dl (cdr dl)))))) | 5284 | (setq dl (cdr dl)))))) |
| 5281 | (tramp-error vec 'file-error "Couldn't find a proper `ls' command")))) | 5285 | (tramp-error vec 'file-error "Couldn’t find a proper ‘ls’ command")))) |
| 5282 | 5286 | ||
| 5283 | (defun tramp-get-ls-command-with-dired (vec) | 5287 | (defun tramp-get-ls-command-with-dired (vec) |
| 5284 | (save-match-data | 5288 | (save-match-data |
| 5285 | (with-tramp-connection-property vec "ls-dired" | 5289 | (with-tramp-connection-property vec "ls-dired" |
| 5286 | (tramp-message vec 5 "Checking, whether `ls --dired' works") | 5290 | (tramp-message vec 5 "Checking, whether ‘ls --dired’ works") |
| 5287 | ;; Some "ls" versions are sensible wrt the order of arguments, | 5291 | ;; Some "ls" versions are sensible wrt the order of arguments, |
| 5288 | ;; they fail when "-al" is after the "--dired" argument (for | 5292 | ;; they fail when "-al" is after the "--dired" argument (for |
| 5289 | ;; example on FreeBSD). | 5293 | ;; example on FreeBSD). |
| @@ -5293,7 +5297,7 @@ Return ATTR." | |||
| 5293 | (defun tramp-get-ls-command-with-quoting-style (vec) | 5297 | (defun tramp-get-ls-command-with-quoting-style (vec) |
| 5294 | (save-match-data | 5298 | (save-match-data |
| 5295 | (with-tramp-connection-property vec "ls-quoting-style" | 5299 | (with-tramp-connection-property vec "ls-quoting-style" |
| 5296 | (tramp-message vec 5 "Checking, whether `ls --quoting-style=shell' works") | 5300 | (tramp-message vec 5 "Checking, whether ‘ls --quoting-style=shell’ works") |
| 5297 | ;; Some "ls" versions are sensible wrt the order of arguments, | 5301 | ;; Some "ls" versions are sensible wrt the order of arguments, |
| 5298 | ;; they fail when "-al" is after the "--dired" argument (for | 5302 | ;; they fail when "-al" is after the "--dired" argument (for |
| 5299 | ;; example on FreeBSD). | 5303 | ;; example on FreeBSD). |
| @@ -5303,7 +5307,7 @@ Return ATTR." | |||
| 5303 | 5307 | ||
| 5304 | (defun tramp-get-test-command (vec) | 5308 | (defun tramp-get-test-command (vec) |
| 5305 | (with-tramp-connection-property vec "test" | 5309 | (with-tramp-connection-property vec "test" |
| 5306 | (tramp-message vec 5 "Finding a suitable `test' command") | 5310 | (tramp-message vec 5 "Finding a suitable ‘test’ command") |
| 5307 | (if (tramp-send-command-and-check vec "test 0") | 5311 | (if (tramp-send-command-and-check vec "test 0") |
| 5308 | "test" | 5312 | "test" |
| 5309 | (tramp-find-executable vec "test" (tramp-get-remote-path vec))))) | 5313 | (tramp-find-executable vec "test" (tramp-get-remote-path vec))))) |
| @@ -5336,12 +5340,12 @@ Return ATTR." | |||
| 5336 | 5340 | ||
| 5337 | (defun tramp-get-remote-ln (vec) | 5341 | (defun tramp-get-remote-ln (vec) |
| 5338 | (with-tramp-connection-property vec "ln" | 5342 | (with-tramp-connection-property vec "ln" |
| 5339 | (tramp-message vec 5 "Finding a suitable `ln' command") | 5343 | (tramp-message vec 5 "Finding a suitable ‘ln’ command") |
| 5340 | (tramp-find-executable vec "ln" (tramp-get-remote-path vec)))) | 5344 | (tramp-find-executable vec "ln" (tramp-get-remote-path vec)))) |
| 5341 | 5345 | ||
| 5342 | (defun tramp-get-remote-perl (vec) | 5346 | (defun tramp-get-remote-perl (vec) |
| 5343 | (with-tramp-connection-property vec "perl" | 5347 | (with-tramp-connection-property vec "perl" |
| 5344 | (tramp-message vec 5 "Finding a suitable `perl' command") | 5348 | (tramp-message vec 5 "Finding a suitable ‘perl’ command") |
| 5345 | (let ((result | 5349 | (let ((result |
| 5346 | (or (tramp-find-executable vec "perl5" (tramp-get-remote-path vec)) | 5350 | (or (tramp-find-executable vec "perl5" (tramp-get-remote-path vec)) |
| 5347 | (tramp-find-executable | 5351 | (tramp-find-executable |
| @@ -5358,7 +5362,7 @@ Return ATTR." | |||
| 5358 | 5362 | ||
| 5359 | (defun tramp-get-remote-stat (vec) | 5363 | (defun tramp-get-remote-stat (vec) |
| 5360 | (with-tramp-connection-property vec "stat" | 5364 | (with-tramp-connection-property vec "stat" |
| 5361 | (tramp-message vec 5 "Finding a suitable `stat' command") | 5365 | (tramp-message vec 5 "Finding a suitable ‘stat’ command") |
| 5362 | (let ((result (tramp-find-executable | 5366 | (let ((result (tramp-find-executable |
| 5363 | vec "stat" (tramp-get-remote-path vec))) | 5367 | vec "stat" (tramp-get-remote-path vec))) |
| 5364 | tmp) | 5368 | tmp) |
| @@ -5376,7 +5380,7 @@ Return ATTR." | |||
| 5376 | 5380 | ||
| 5377 | (defun tramp-get-remote-readlink (vec) | 5381 | (defun tramp-get-remote-readlink (vec) |
| 5378 | (with-tramp-connection-property vec "readlink" | 5382 | (with-tramp-connection-property vec "readlink" |
| 5379 | (tramp-message vec 5 "Finding a suitable `readlink' command") | 5383 | (tramp-message vec 5 "Finding a suitable ‘readlink’ command") |
| 5380 | (let ((result (tramp-find-executable | 5384 | (let ((result (tramp-find-executable |
| 5381 | vec "readlink" (tramp-get-remote-path vec)))) | 5385 | vec "readlink" (tramp-get-remote-path vec)))) |
| 5382 | (when (and result | 5386 | (when (and result |
| @@ -5386,12 +5390,12 @@ Return ATTR." | |||
| 5386 | 5390 | ||
| 5387 | (defun tramp-get-remote-trash (vec) | 5391 | (defun tramp-get-remote-trash (vec) |
| 5388 | (with-tramp-connection-property vec "trash" | 5392 | (with-tramp-connection-property vec "trash" |
| 5389 | (tramp-message vec 5 "Finding a suitable `trash' command") | 5393 | (tramp-message vec 5 "Finding a suitable ‘trash’ command") |
| 5390 | (tramp-find-executable vec "trash" (tramp-get-remote-path vec)))) | 5394 | (tramp-find-executable vec "trash" (tramp-get-remote-path vec)))) |
| 5391 | 5395 | ||
| 5392 | (defun tramp-get-remote-touch (vec) | 5396 | (defun tramp-get-remote-touch (vec) |
| 5393 | (with-tramp-connection-property vec "touch" | 5397 | (with-tramp-connection-property vec "touch" |
| 5394 | (tramp-message vec 5 "Finding a suitable `touch' command") | 5398 | (tramp-message vec 5 "Finding a suitable ‘touch’ command") |
| 5395 | (let ((result (tramp-find-executable | 5399 | (let ((result (tramp-find-executable |
| 5396 | vec "touch" (tramp-get-remote-path vec))) | 5400 | vec "touch" (tramp-get-remote-path vec))) |
| 5397 | (tmpfile | 5401 | (tmpfile |
| @@ -5415,18 +5419,18 @@ Return ATTR." | |||
| 5415 | 5419 | ||
| 5416 | (defun tramp-get-remote-gvfs-monitor-dir (vec) | 5420 | (defun tramp-get-remote-gvfs-monitor-dir (vec) |
| 5417 | (with-tramp-connection-property vec "gvfs-monitor-dir" | 5421 | (with-tramp-connection-property vec "gvfs-monitor-dir" |
| 5418 | (tramp-message vec 5 "Finding a suitable `gvfs-monitor-dir' command") | 5422 | (tramp-message vec 5 "Finding a suitable ‘gvfs-monitor-dir’ command") |
| 5419 | (tramp-find-executable | 5423 | (tramp-find-executable |
| 5420 | vec "gvfs-monitor-dir" (tramp-get-remote-path vec) t t))) | 5424 | vec "gvfs-monitor-dir" (tramp-get-remote-path vec) t t))) |
| 5421 | 5425 | ||
| 5422 | (defun tramp-get-remote-inotifywait (vec) | 5426 | (defun tramp-get-remote-inotifywait (vec) |
| 5423 | (with-tramp-connection-property vec "inotifywait" | 5427 | (with-tramp-connection-property vec "inotifywait" |
| 5424 | (tramp-message vec 5 "Finding a suitable `inotifywait' command") | 5428 | (tramp-message vec 5 "Finding a suitable ‘inotifywait’ command") |
| 5425 | (tramp-find-executable vec "inotifywait" (tramp-get-remote-path vec) t t))) | 5429 | (tramp-find-executable vec "inotifywait" (tramp-get-remote-path vec) t t))) |
| 5426 | 5430 | ||
| 5427 | (defun tramp-get-remote-id (vec) | 5431 | (defun tramp-get-remote-id (vec) |
| 5428 | (with-tramp-connection-property vec "id" | 5432 | (with-tramp-connection-property vec "id" |
| 5429 | (tramp-message vec 5 "Finding POSIX `id' command") | 5433 | (tramp-message vec 5 "Finding POSIX ‘id’ command") |
| 5430 | (catch 'id-found | 5434 | (catch 'id-found |
| 5431 | (dolist (cmd '("id" "gid")) | 5435 | (dolist (cmd '("id" "gid")) |
| 5432 | (let ((dl (tramp-get-remote-path vec)) | 5436 | (let ((dl (tramp-get-remote-path vec)) |
| @@ -5457,7 +5461,7 @@ Return ATTR." | |||
| 5457 | 5461 | ||
| 5458 | (defun tramp-get-remote-python (vec) | 5462 | (defun tramp-get-remote-python (vec) |
| 5459 | (with-tramp-connection-property vec "python" | 5463 | (with-tramp-connection-property vec "python" |
| 5460 | (tramp-message vec 5 "Finding a suitable `python' command") | 5464 | (tramp-message vec 5 "Finding a suitable ‘python’ command") |
| 5461 | (or (tramp-find-executable vec "python" (tramp-get-remote-path vec)) | 5465 | (or (tramp-find-executable vec "python" (tramp-get-remote-path vec)) |
| 5462 | (tramp-find-executable vec "python2" (tramp-get-remote-path vec)) | 5466 | (tramp-find-executable vec "python2" (tramp-get-remote-path vec)) |
| 5463 | (tramp-find-executable vec "python3" (tramp-get-remote-path vec))))) | 5467 | (tramp-find-executable vec "python3" (tramp-get-remote-path vec))))) |
diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el index c4f0f1f500a..6fefa3f9614 100644 --- a/lisp/net/tramp-smb.el +++ b/lisp/net/tramp-smb.el | |||
| @@ -115,7 +115,7 @@ call, letting the SMB client use the default one." | |||
| 115 | "Read from server failed, maybe it closed the connection" | 115 | "Read from server failed, maybe it closed the connection" |
| 116 | "Call timed out: server did not respond" | 116 | "Call timed out: server did not respond" |
| 117 | "\\S-+: command not found" | 117 | "\\S-+: command not found" |
| 118 | "Server doesn't support UNIX CIFS calls" | 118 | "Server doesn’t support UNIX CIFS calls" |
| 119 | ,(regexp-opt | 119 | ,(regexp-opt |
| 120 | '(;; Samba. | 120 | '(;; Samba. |
| 121 | "ERRDOS" | 121 | "ERRDOS" |
| @@ -374,7 +374,7 @@ pass to the OPERATION." | |||
| 374 | (tramp-smb-get-localname v2))) | 374 | (tramp-smb-get-localname v2))) |
| 375 | (tramp-error | 375 | (tramp-error |
| 376 | v2 'file-error | 376 | v2 'file-error |
| 377 | "error with add-name-to-file, see buffer `%s' for details" | 377 | "error with add-name-to-file, see buffer ‘%s’ for details" |
| 378 | (buffer-name)))))) | 378 | (buffer-name)))))) |
| 379 | 379 | ||
| 380 | (defun tramp-smb-action-with-tar (proc vec) | 380 | (defun tramp-smb-action-with-tar (proc vec) |
| @@ -581,12 +581,12 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored." | |||
| 581 | (tramp-flush-file-property v localname) | 581 | (tramp-flush-file-property v localname) |
| 582 | (unless (tramp-smb-get-share v) | 582 | (unless (tramp-smb-get-share v) |
| 583 | (tramp-error | 583 | (tramp-error |
| 584 | v 'file-error "Target `%s' must contain a share name" newname)) | 584 | v 'file-error "Target ‘%s’ must contain a share name" newname)) |
| 585 | (unless (tramp-smb-send-command | 585 | (unless (tramp-smb-send-command |
| 586 | v (format "put \"%s\" \"%s\"" | 586 | v (format "put \"%s\" \"%s\"" |
| 587 | filename (tramp-smb-get-localname v))) | 587 | filename (tramp-smb-get-localname v))) |
| 588 | (tramp-error | 588 | (tramp-error |
| 589 | v 'file-error "Cannot copy `%s' to `%s'" filename newname)))))) | 589 | v 'file-error "Cannot copy ‘%s’ to ‘%s’" filename newname)))))) |
| 590 | 590 | ||
| 591 | ;; KEEP-DATE handling. | 591 | ;; KEEP-DATE handling. |
| 592 | (when keep-date | 592 | (when keep-date |
| @@ -621,7 +621,7 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored." | |||
| 621 | (goto-char (point-min)) | 621 | (goto-char (point-min)) |
| 622 | (search-forward-regexp tramp-smb-errors nil t) | 622 | (search-forward-regexp tramp-smb-errors nil t) |
| 623 | (tramp-error | 623 | (tramp-error |
| 624 | v 'file-error "%s `%s'" (match-string 0) directory)))))) | 624 | v 'file-error "%s ‘%s’" (match-string 0) directory)))))) |
| 625 | 625 | ||
| 626 | (defun tramp-smb-handle-delete-file (filename &optional _trash) | 626 | (defun tramp-smb-handle-delete-file (filename &optional _trash) |
| 627 | "Like `delete-file' for Tramp files." | 627 | "Like `delete-file' for Tramp files." |
| @@ -642,7 +642,7 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored." | |||
| 642 | (goto-char (point-min)) | 642 | (goto-char (point-min)) |
| 643 | (search-forward-regexp tramp-smb-errors nil t) | 643 | (search-forward-regexp tramp-smb-errors nil t) |
| 644 | (tramp-error | 644 | (tramp-error |
| 645 | v 'file-error "%s `%s'" (match-string 0) filename)))))) | 645 | v 'file-error "%s ‘%s’" (match-string 0) filename)))))) |
| 646 | 646 | ||
| 647 | (defun tramp-smb-handle-directory-files | 647 | (defun tramp-smb-handle-directory-files |
| 648 | (directory &optional full match nosort) | 648 | (directory &optional full match nosort) |
| @@ -891,7 +891,7 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored." | |||
| 891 | (unless (file-exists-p filename) | 891 | (unless (file-exists-p filename) |
| 892 | (tramp-error | 892 | (tramp-error |
| 893 | v 'file-error | 893 | v 'file-error |
| 894 | "Cannot make local copy of non-existing file `%s'" filename)) | 894 | "Cannot make local copy of non-existing file ‘%s’" filename)) |
| 895 | (let ((tmpfile (tramp-compat-make-temp-file filename))) | 895 | (let ((tmpfile (tramp-compat-make-temp-file filename))) |
| 896 | (with-tramp-progress-reporter | 896 | (with-tramp-progress-reporter |
| 897 | v 3 (format "Fetching %s to tmp file %s" filename tmpfile) | 897 | v 3 (format "Fetching %s to tmp file %s" filename tmpfile) |
| @@ -901,7 +901,7 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored." | |||
| 901 | ;; Oops, an error. We shall cleanup. | 901 | ;; Oops, an error. We shall cleanup. |
| 902 | (delete-file tmpfile) | 902 | (delete-file tmpfile) |
| 903 | (tramp-error | 903 | (tramp-error |
| 904 | v 'file-error "Cannot make local copy of file `%s'" filename))) | 904 | v 'file-error "Cannot make local copy of file ‘%s’" filename))) |
| 905 | tmpfile))) | 905 | tmpfile))) |
| 906 | 906 | ||
| 907 | ;; This function should return "foo/" for directories and "bar" for | 907 | ;; This function should return "foo/" for directories and "bar" for |
| @@ -1055,7 +1055,7 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored." | |||
| 1055 | (when (file-directory-p ldir) | 1055 | (when (file-directory-p ldir) |
| 1056 | (make-directory-internal dir)) | 1056 | (make-directory-internal dir)) |
| 1057 | (unless (file-directory-p dir) | 1057 | (unless (file-directory-p dir) |
| 1058 | (tramp-error v 'file-error "Couldn't make directory %s" dir)))))) | 1058 | (tramp-error v 'file-error "Couldn’t make directory %s" dir)))))) |
| 1059 | 1059 | ||
| 1060 | (defun tramp-smb-handle-make-directory-internal (directory) | 1060 | (defun tramp-smb-handle-make-directory-internal (directory) |
| 1061 | "Like `make-directory-internal' for Tramp files." | 1061 | "Like `make-directory-internal' for Tramp files." |
| @@ -1079,7 +1079,7 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored." | |||
| 1079 | (tramp-flush-file-property v localname)) | 1079 | (tramp-flush-file-property v localname)) |
| 1080 | (unless (file-directory-p directory) | 1080 | (unless (file-directory-p directory) |
| 1081 | (tramp-error | 1081 | (tramp-error |
| 1082 | v 'file-error "Couldn't make directory %s" directory)))))) | 1082 | v 'file-error "Couldn’t make directory %s" directory)))))) |
| 1083 | 1083 | ||
| 1084 | (defun tramp-smb-handle-make-symbolic-link | 1084 | (defun tramp-smb-handle-make-symbolic-link |
| 1085 | (filename linkname &optional ok-if-already-exists) | 1085 | (filename linkname &optional ok-if-already-exists) |
| @@ -1130,7 +1130,7 @@ target of the symlink differ." | |||
| 1130 | (tramp-smb-get-localname v2))) | 1130 | (tramp-smb-get-localname v2))) |
| 1131 | (tramp-error | 1131 | (tramp-error |
| 1132 | v2 'file-error | 1132 | v2 'file-error |
| 1133 | "error with make-symbolic-link, see buffer `%s' for details" | 1133 | "error with make-symbolic-link, see buffer ‘%s’ for details" |
| 1134 | (buffer-name)))))) | 1134 | (buffer-name)))))) |
| 1135 | 1135 | ||
| 1136 | (defun tramp-smb-handle-process-file | 1136 | (defun tramp-smb-handle-process-file |
| @@ -1289,12 +1289,12 @@ target of the symlink differ." | |||
| 1289 | (tramp-flush-file-property v2 v2-localname) | 1289 | (tramp-flush-file-property v2 v2-localname) |
| 1290 | (unless (tramp-smb-get-share v2) | 1290 | (unless (tramp-smb-get-share v2) |
| 1291 | (tramp-error | 1291 | (tramp-error |
| 1292 | v2 'file-error "Target `%s' must contain a share name" newname)) | 1292 | v2 'file-error "Target ‘%s’ must contain a share name" newname)) |
| 1293 | (unless (tramp-smb-send-command | 1293 | (unless (tramp-smb-send-command |
| 1294 | v2 (format "rename \"%s\" \"%s\"" | 1294 | v2 (format "rename \"%s\" \"%s\"" |
| 1295 | (tramp-smb-get-localname v1) | 1295 | (tramp-smb-get-localname v1) |
| 1296 | (tramp-smb-get-localname v2))) | 1296 | (tramp-smb-get-localname v2))) |
| 1297 | (tramp-error v2 'file-error "Cannot rename `%s'" filename)))) | 1297 | (tramp-error v2 'file-error "Cannot rename ‘%s’" filename)))) |
| 1298 | 1298 | ||
| 1299 | ;; We must rename via copy. | 1299 | ;; We must rename via copy. |
| 1300 | (tramp-compat-copy-file filename newname ok-if-already-exists t t t) | 1300 | (tramp-compat-copy-file filename newname ok-if-already-exists t t t) |
| @@ -1371,7 +1371,7 @@ target of the symlink differ." | |||
| 1371 | (unless (re-search-backward "tramp_exit_status [0-9]+" nil t) | 1371 | (unless (re-search-backward "tramp_exit_status [0-9]+" nil t) |
| 1372 | (tramp-error | 1372 | (tramp-error |
| 1373 | v 'file-error | 1373 | v 'file-error |
| 1374 | "Couldn't find exit status of `%s'" tramp-smb-acl-program)) | 1374 | "Couldn’t find exit status of ‘%s’" tramp-smb-acl-program)) |
| 1375 | (skip-chars-forward "^ ") | 1375 | (skip-chars-forward "^ ") |
| 1376 | (when (zerop (read (current-buffer))) | 1376 | (when (zerop (read (current-buffer))) |
| 1377 | ;; Success. | 1377 | ;; Success. |
| @@ -1392,7 +1392,7 @@ target of the symlink differ." | |||
| 1392 | (tramp-smb-get-localname v) | 1392 | (tramp-smb-get-localname v) |
| 1393 | (tramp-compat-decimal-to-octal mode))) | 1393 | (tramp-compat-decimal-to-octal mode))) |
| 1394 | (tramp-error | 1394 | (tramp-error |
| 1395 | v 'file-error "Error while changing file's mode %s" filename))))) | 1395 | v 'file-error "Error while changing file’s mode %s" filename))))) |
| 1396 | 1396 | ||
| 1397 | ;; We use BUFFER also as connection buffer during setup. Because of | 1397 | ;; We use BUFFER also as connection buffer during setup. Because of |
| 1398 | ;; this, its original contents must be saved, and restored once | 1398 | ;; this, its original contents must be saved, and restored once |
| @@ -1490,13 +1490,13 @@ errors for shares like \"C$/\", which are common in Microsoft Windows." | |||
| 1490 | (unless (tramp-smb-send-command | 1490 | (unless (tramp-smb-send-command |
| 1491 | v (format "put %s \"%s\"" | 1491 | v (format "put %s \"%s\"" |
| 1492 | tmpfile (tramp-smb-get-localname v))) | 1492 | tmpfile (tramp-smb-get-localname v))) |
| 1493 | (tramp-error v 'file-error "Cannot write `%s'" filename)) | 1493 | (tramp-error v 'file-error "Cannot write ‘%s’" filename)) |
| 1494 | (delete-file tmpfile))) | 1494 | (delete-file tmpfile))) |
| 1495 | 1495 | ||
| 1496 | (unless (equal curbuf (current-buffer)) | 1496 | (unless (equal curbuf (current-buffer)) |
| 1497 | (tramp-error | 1497 | (tramp-error |
| 1498 | v 'file-error | 1498 | v 'file-error |
| 1499 | "Buffer has changed from `%s' to `%s'" curbuf (current-buffer))) | 1499 | "Buffer has changed from ‘%s’ to ‘%s’" curbuf (current-buffer))) |
| 1500 | (when (eq visit t) | 1500 | (when (eq visit t) |
| 1501 | (set-visited-file-modtime))))) | 1501 | (set-visited-file-modtime))))) |
| 1502 | 1502 | ||
| @@ -1563,7 +1563,7 @@ Result is a list of (LOCALNAME MODE SIZE MONTH DAY TIME YEAR)." | |||
| 1563 | ;; Loop the listing. | 1563 | ;; Loop the listing. |
| 1564 | (goto-char (point-min)) | 1564 | (goto-char (point-min)) |
| 1565 | (if (re-search-forward tramp-smb-errors nil t) | 1565 | (if (re-search-forward tramp-smb-errors nil t) |
| 1566 | (tramp-error v 'file-error "%s `%s'" (match-string 0) directory) | 1566 | (tramp-error v 'file-error "%s ‘%s’" (match-string 0) directory) |
| 1567 | (while (not (eobp)) | 1567 | (while (not (eobp)) |
| 1568 | (setq entry (tramp-smb-read-file-entry share)) | 1568 | (setq entry (tramp-smb-read-file-entry share)) |
| 1569 | (forward-line) | 1569 | (forward-line) |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 193d70b230a..69d7e1fe613 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -1504,7 +1504,7 @@ ARGUMENTS to actually emit the message (if applicable)." | |||
| 1504 | ; (1+ (count-lines (point-min) (cdr ffn))))))) | 1504 | ; (1+ (count-lines (point-min) (cdr ffn))))))) |
| 1505 | (insert (format "%s " fn))) | 1505 | (insert (format "%s " fn))) |
| 1506 | ;; The message. | 1506 | ;; The message. |
| 1507 | (insert (apply 'format fmt-string arguments)))) | 1507 | (insert (apply #'format-message fmt-string arguments)))) |
| 1508 | 1508 | ||
| 1509 | (defvar tramp-message-show-message t | 1509 | (defvar tramp-message-show-message t |
| 1510 | "Show Tramp message in the minibuffer. | 1510 | "Show Tramp message in the minibuffer. |
| @@ -1581,8 +1581,8 @@ signal identifier to be raised, remaining arguments passed to | |||
| 1581 | (error-message-string | 1581 | (error-message-string |
| 1582 | (list signal | 1582 | (list signal |
| 1583 | (get signal 'error-message) | 1583 | (get signal 'error-message) |
| 1584 | (apply 'format fmt-string arguments))))) | 1584 | (apply #'format-message fmt-string arguments))))) |
| 1585 | (signal signal (list (apply 'format fmt-string arguments))))) | 1585 | (signal signal (list (apply #'format-message fmt-string arguments))))) |
| 1586 | 1586 | ||
| 1587 | (defsubst tramp-error-with-buffer | 1587 | (defsubst tramp-error-with-buffer |
| 1588 | (buf vec-or-proc signal fmt-string &rest arguments) | 1588 | (buf vec-or-proc signal fmt-string &rest arguments) |
| @@ -3599,8 +3599,8 @@ connection buffer." | |||
| 3599 | "Tramp failed to connect. If this happens repeatedly, try\n" | 3599 | "Tramp failed to connect. If this happens repeatedly, try\n" |
| 3600 | " `\\[tramp-cleanup-this-connection]'"))) | 3600 | " `\\[tramp-cleanup-this-connection]'"))) |
| 3601 | ((eq exit 'timeout) | 3601 | ((eq exit 'timeout) |
| 3602 | (format | 3602 | (format-message |
| 3603 | "Timeout reached, see buffer `%s' for details" | 3603 | "Timeout reached, see buffer ‘%s’ for details" |
| 3604 | (tramp-get-connection-buffer vec))) | 3604 | (tramp-get-connection-buffer vec))) |
| 3605 | (t "Login failed"))))) | 3605 | (t "Login failed"))))) |
| 3606 | (when (numberp pos) | 3606 | (when (numberp pos) |