method user host
(with-tramp-file-property v localname "file-truename"
(let ((result nil)) ; result steps in reverse order
- (tramp-message v 4 "Finding true name for ‘%s’" filename)
+ (tramp-message v 4 "Finding true name for `%s'" filename)
(let* ((directory-sep-char ?/)
(steps (tramp-compat-split-string localname "/"))
(localnamedir (tramp-run-real-handler
(list thisstep))
"/")))))
(cond ((string= "." thisstep)
- (tramp-message v 5 "Ignoring step ‘.’"))
+ (tramp-message v 5 "Ignoring step `.'"))
((string= ".." thisstep)
- (tramp-message v 5 "Processing step ‘..’")
+ (tramp-message v 5 "Processing step `..'")
(pop result))
((stringp symlink-target)
;; It's a symlink, follow it.
(unless (tramp-equal-remote filename symlink-target)
(tramp-error
v 'file-error
- "Symlink target ‘%s’ on wrong host" symlink-target))
+ "Symlink target `%s' on wrong host" symlink-target))
(setq symlink-target localname))
(setq steps
(append (tramp-compat-split-string
(not (string= (substring result -1) "/"))))
(setq result (concat result "/"))))
- (tramp-message v 4 "True name of ‘%s’ is ‘%s’" localname result)
+ (tramp-message v 4 "True name of `%s' is `%s'" localname result)
result))))
;; Preserve trailing "/".
(defun tramp-adb-get-ls-command (vec)
(with-tramp-connection-property vec "ls"
- (tramp-message vec 5 "Finding a suitable ‘ls’ command")
+ (tramp-message vec 5 "Finding a suitable `ls' command")
(if (tramp-adb-send-command-and-check vec "ls --color=never -al /dev/null")
;; On CyanogenMod based system BusyBox is used and "ls" output
;; coloring is enabled by default. So we try to disable it
(make-directory par parents))))
(tramp-adb-barf-unless-okay
v (format "mkdir %s" (tramp-shell-quote-argument localname))
- "Couldn’t make directory %s" dir)
+ "Couldn't make directory %s" dir)
(tramp-flush-file-property v (file-name-directory localname))
(tramp-flush-directory-property v localname)))
v (format "%s %s"
(if recursive "rm -r" "rmdir")
(tramp-shell-quote-argument localname))
- "Couldn’t delete %s" directory)))
+ "Couldn't delete %s" directory)))
(defun tramp-adb-handle-delete-file (filename &optional _trash)
"Like `delete-file' for Tramp files."
(tramp-flush-file-property v localname)
(tramp-adb-barf-unless-okay
v (format "rm %s" (tramp-shell-quote-argument localname))
- "Couldn’t delete %s" filename)))
+ "Couldn't delete %s" filename)))
(defun tramp-adb-handle-file-name-all-completions (filename directory)
"Like `file-name-all-completions' for Tramp files."
(unless (file-exists-p (file-truename filename))
(tramp-error
v 'file-error
- "Cannot make local copy of non-existing file ‘%s’" filename))
+ "Cannot make local copy of non-existing file `%s'" filename))
(let ((tmpfile (tramp-compat-make-temp-file filename)))
(with-tramp-progress-reporter
v 3 (format "Fetching %s to tmp file %s" filename tmpfile)
(not (file-exists-p tmpfile)))
(ignore-errors (delete-file tmpfile))
(tramp-error
- v 'file-error "Cannot make local copy of file ‘%s’" filename))
+ v 'file-error "Cannot make local copy of file `%s'" filename))
(set-file-modes
tmpfile
(logior (or (file-modes filename) 0)
(list start end tmpfile append 'no-message lockname confirm))
(with-tramp-progress-reporter
v 3 (format-message
- "Moving tmp file ‘%s’ to ‘%s’" tmpfile filename)
+ "Moving tmp file `%s' to `%s'" tmpfile filename)
(unwind-protect
(when (tramp-adb-execute-adb-command v "push" tmpfile localname)
- (tramp-error v 'file-error "Cannot write: ‘%s’" filename))
+ (tramp-error v 'file-error "Cannot write: `%s'" filename))
(delete-file tmpfile)))
(when (or (eq visit t) (stringp visit))
(unless (equal curbuf (current-buffer))
(tramp-error
v 'file-error
- "Buffer has changed from ‘%s’ to ‘%s’" curbuf (current-buffer))))))
+ "Buffer has changed from `%s' to `%s'" curbuf (current-buffer))))))
(defun tramp-adb-handle-set-file-modes (filename mode)
"Like `set-file-modes' for Tramp files."
(tramp-flush-file-property v localname)
(when (tramp-adb-execute-adb-command v "push" filename localname)
(tramp-error
- v 'file-error "Cannot copy ‘%s’ ‘%s’" filename newname))))))
+ v 'file-error "Cannot copy `%s' `%s'" filename newname))))))
;; KEEP-DATE handling.
(when keep-date
(goto-char (point-max))
(unless (re-search-backward "tramp_exit_status [0-9]+" nil t)
(tramp-error
- vec 'file-error "Couldn’t find exit status of ‘%s’" command))
+ vec 'file-error "Couldn't find exit status of `%s'" command))
(skip-chars-forward "^ ")
(prog1
(zerop (read (current-buffer)))
"Wait for output from remote command."
(unless (buffer-live-p (process-buffer proc))
(delete-process proc)
- (tramp-error proc 'file-error "Process ‘%s’ not available, try again" proc))
+ (tramp-error proc 'file-error "Process `%s' not available, try again" proc))
(with-current-buffer (process-buffer proc)
(if (tramp-wait-for-regexp proc timeout tramp-adb-prompt)
(let (buffer-read-only)
(if timeout
(tramp-error
proc 'file-error
- "[[Remote adb prompt ‘%s’ not found in %d secs]]"
+ "[[Remote adb prompt `%s' not found in %d secs]]"
tramp-adb-prompt timeout)
(tramp-error
proc 'file-error
- "[[Remote prompt ‘%s’ not found]]" tramp-adb-prompt)))))
+ "[[Remote prompt `%s' not found]]" tramp-adb-prompt)))))
(defun tramp-adb-maybe-open-connection (vec)
"Maybe open a connection VEC.
;; use a connection property, because we have not checked yet
;; whether it is still the same device.
(when (and user (not (tramp-get-file-property vec "" "su-command-p" t)))
- (tramp-error vec 'file-error "Cannot switch to user ‘%s’" user))
+ (tramp-error vec 'file-error "Cannot switch to user `%s'" user))
(unless
(and p (processp p) (memq (process-status p) '(run open)))
(not (string-equal old-getprop new-getprop)))
(tramp-message
vec 3
- "Connection reset, because remote host changed from ‘%s’ to ‘%s’"
+ "Connection reset, because remote host changed from `%s' to `%s'"
old-getprop new-getprop)
(tramp-cleanup-connection vec t)
(tramp-adb-maybe-open-connection vec)))
(delete-process p)
(tramp-set-file-property vec "" "su-command-p" nil)
(tramp-error
- vec 'file-error "Cannot switch to user ‘%s’" user)))
+ vec 'file-error "Cannot switch to user `%s'" user)))
;; Set "remote-path" connection property. This is needed
;; for eshell.
"///%s#$"
(md5 (concat (prin1-to-string process-environment) (current-time-string))))
"String used to recognize end of output.
-The ‘$’ character at the end is quoted; the string cannot be
+The `$' character at the end is quoted; the string cannot be
detected as prompt when being sent on echoing hosts, therefore.")
;;;###tramp-autoload
method user host
(with-tramp-file-property v localname "file-truename"
(let ((result nil)) ; result steps in reverse order
- (tramp-message v 4 "Finding true name for ‘%s’" filename)
+ (tramp-message v 4 "Finding true name for `%s'" filename)
(cond
;; Use GNU readlink --canonicalize-missing where available.
((tramp-get-remote-readlink v)
(list thisstep))
"/")))))
(cond ((string= "." thisstep)
- (tramp-message v 5 "Ignoring step ‘.’"))
+ (tramp-message v 5 "Ignoring step `.'"))
((string= ".." thisstep)
- (tramp-message v 5 "Processing step ‘..’")
+ (tramp-message v 5 "Processing step `..'")
(pop result))
((stringp symlink-target)
;; It's a symlink, follow it.
(unless (tramp-equal-remote filename symlink-target)
(tramp-error
v 'file-error
- "Symlink target ‘%s’ on wrong host"
+ "Symlink target `%s' on wrong host"
symlink-target))
(setq symlink-target localname))
(setq steps
(not (string= (substring result -1) "/"))))
(setq result (concat result "/"))))))
- (tramp-message v 4 "True name of ‘%s’ is ‘%s’" localname result)
+ (tramp-message v 4 "True name of `%s' is `%s'" localname result)
result))))
;; Preserve trailing "/".
(defun tramp-sh-handle-set-visited-file-modtime (&optional time-list)
"Like `set-visited-file-modtime' for Tramp files."
(unless (buffer-file-name)
- (error "Can’t set-visited-file-modtime: buffer ‘%s’ not visiting a file"
+ (error "Can't set-visited-file-modtime: buffer `%s' not visiting a file"
(buffer-name)))
(if time-list
(tramp-run-real-handler 'set-visited-file-modtime (list time-list))
(format "chmod %s %s"
(tramp-compat-decimal-to-octal mode)
(tramp-shell-quote-argument localname))
- "Error while changing file’s mode %s" filename)))
+ "Error while changing file's mode %s" filename)))
(defun tramp-sh-handle-set-file-times (filename &optional time)
"Like `set-file-times' for Tramp files."
(tramp-error
v 'file-error
"\
-tramp-sh-handle-file-name-all-completions: internal error accessing ‘%s’: ‘%s’"
+tramp-sh-handle-file-name-all-completions: internal error accessing `%s': `%s'"
(tramp-shell-quote-argument localname) (buffer-string))))
(while (zerop (forward-line -1))
(format "%s %s %s" ln
(tramp-shell-quote-argument v1-localname)
(tramp-shell-quote-argument v2-localname))
- "error with add-name-to-file, see buffer ‘%s’ for details"
+ "error with add-name-to-file, see buffer `%s' for details"
(buffer-name))))))
(defun tramp-sh-handle-copy-file
of `copy' and `rename'. FILENAME and NEWNAME must be absolute
file names."
(unless (memq op '(copy rename))
- (error "Unknown operation ‘%s’, must be ‘copy’ or ‘rename’" op))
+ (error "Unknown operation `%s', must be `copy' or `rename'" op))
(let ((t1 (tramp-tramp-file-p filename))
(t2 (tramp-tramp-file-p newname))
(length (nth 7 (file-attributes (file-truename filename))))
((eq op 'rename) "mv -f")
(t (tramp-error
v 'file-error
- "Unknown operation ‘%s’, must be ‘copy’ or ‘rename’"
+ "Unknown operation `%s', must be `copy' or `rename'"
op))))
(localname1
(if t1
cmd-result)
(tramp-error-with-buffer
nil v 'file-error
- "Copying directly failed, see buffer ‘%s’ for details."
+ "Copying directly failed, see buffer `%s' for details."
(buffer-name)))))
;; We are on the local host.
"%s %s %s" cmd
(tramp-shell-quote-argument localname1)
(tramp-shell-quote-argument tmpfile))
- "Copying directly failed, see buffer ‘%s’ for details."
+ "Copying directly failed, see buffer `%s' for details."
(tramp-get-buffer v))
;; We must change the ownership as remote user.
;; Since this does not work reliable, we also
"cp -f -p %s %s"
(tramp-shell-quote-argument tmpfile)
(tramp-shell-quote-argument localname2))
- "Copying directly failed, see buffer ‘%s’ for details."
+ "Copying directly failed, see buffer `%s' for details."
(tramp-get-buffer v)))
(t1
(tramp-run-real-handler
(with-timeout
(60 (tramp-error
v 'file-error
- "Listener process not running on remote host: ‘%s’"
+ "Listener process not running on remote host: `%s'"
remote-copy-program))
(tramp-send-command v (format "netstat -l | grep -q :%s" listener))
(while (not (tramp-send-command-and-check v nil))
(re-search-backward "tramp_exit_status [0-9]+" nil t)
(tramp-error
orig-vec 'file-error
- "Couldn’t find exit status of ‘%s’"
+ "Couldn't find exit status of `%s'"
(mapconcat 'identity (process-command p) " ")))
(skip-chars-forward "^ ")
(unless (zerop (read (current-buffer)))
(forward-line -1)
(tramp-error
orig-vec 'file-error
- "Error copying: ‘%s’"
+ "Error copying: `%s'"
(buffer-substring (point-min) (point-at-eol))))))
;; Reset the transfer process properties.
v (format "%s %s"
(if parents "mkdir -p" "mkdir")
(tramp-shell-quote-argument localname))
- "Couldn’t make directory %s" dir))))
+ "Couldn't make directory %s" dir))))
(defun tramp-sh-handle-delete-directory (directory &optional recursive)
"Like `delete-directory' for Tramp files."
v (format "cd / && %s %s"
(if recursive "rm -rf" "rmdir")
(tramp-shell-quote-argument localname))
- "Couldn’t delete %s" directory)))
+ "Couldn't delete %s" directory)))
(defun tramp-sh-handle-delete-file (filename &optional trash)
"Like `delete-file' for Tramp files."
v (format "%s %s"
(or (and trash (tramp-get-remote-trash v)) "rm -f")
(tramp-shell-quote-argument localname))
- "Couldn’t delete %s" filename)))
+ "Couldn't delete %s" filename)))
;; Dired.
(when wildcard
(setq switches (concat switches " " wildcard)))
(tramp-message
- v 4 "Inserting directory ‘ls %s %s’, wildcard %s, fulldir %s"
+ v 4 "Inserting directory `ls %s %s', wildcard %s, fulldir %s"
switches filename (if wildcard "yes" "no")
(if full-directory-p "yes" "no"))
;; If `full-directory-p', we just say `ls -l FILENAME'.
(format "cd %s" (tramp-shell-quote-argument
(tramp-run-real-handler
'file-name-directory (list localname))))
- "Couldn’t ‘cd %s’"
+ "Couldn't `cd %s'"
(tramp-shell-quote-argument
(tramp-run-real-handler 'file-name-directory (list localname))))
(tramp-send-command
(unless (memq (process-status proc) '(run open))
(let ((vec (tramp-get-connection-property proc "vector" nil)))
(when vec
- (tramp-message vec 5 "Sentinel called: ‘%S’ ‘%s’" proc event)
+ (tramp-message vec 5 "Sentinel called: `%S' `%s'" proc event)
(tramp-flush-connection-property proc)
(tramp-flush-directory-property vec "")))))
(tramp-get-connection-process v) 'remote-tty)
(tramp-error
v 'file-error
- "pty association is not supported for ‘%s’" name))))
+ "pty association is not supported for `%s'" name))))
(let ((p (tramp-get-connection-process v)))
;; Set query flag and process marker for this
;; process. We ignore errors, because the process
(unless (file-exists-p filename)
(tramp-error
v 'file-error
- "Cannot make local copy of non-existing file ‘%s’" filename))
+ "Cannot make local copy of non-existing file `%s'" filename))
(let* ((size (nth 7 (file-attributes (file-truename filename))))
(rem-enc (tramp-get-inline-coding v "remote-encoding" size))
(save-excursion
(with-tramp-progress-reporter
v 3
- (format-message "Encoding remote file ‘%s’ with ‘%s’"
+ (format-message "Encoding remote file `%s' with `%s'"
filename rem-enc)
(tramp-barf-unless-okay
v (format rem-enc (tramp-shell-quote-argument localname))
"Encoding remote file failed"))
(with-tramp-progress-reporter
- v 3 (format-message "Decoding local file ‘%s’ with ‘%s’"
+ v 3 (format-message "Decoding local file `%s' with `%s'"
tmpfile loc-dec)
(if (functionp loc-dec)
;; If local decoding is a function, we call it.
;; Oops, I don't know what to do.
(t (tramp-error
- v 'file-error "Wrong method specification for ‘%s’" method)))
+ v 'file-error "Wrong method specification for `%s'" method)))
;; Error handling.
((error quit)
;; Use encoding function or command.
(with-tramp-progress-reporter
v 3 (format-message
- "Encoding local file ‘%s’ using ‘%s’"
+ "Encoding local file `%s' using `%s'"
tmpfile loc-enc)
(if (functionp loc-enc)
;; The following `let' is a workaround for
loc-enc tmpfile t))
(tramp-error
v 'file-error
- (concat "Cannot write to ‘%s’, "
- "local encoding command ‘%s’ failed")
+ (concat "Cannot write to `%s', "
+ "local encoding command `%s' failed")
filename loc-enc))))
;; Send buffer into remote decoding command which
;; the remote host, we cannot use the function.
(with-tramp-progress-reporter
v 3 (format-message
- "Decoding remote file ‘%s’ using ‘%s’"
+ "Decoding remote file `%s' using `%s'"
filename rem-dec)
(goto-char (point-max))
(unless (bolp) (newline))
tramp-end-of-heredoc))
(tramp-barf-unless-okay
v nil
- "Couldn’t write region to ‘%s’, decode using ‘%s’ failed"
+ "Couldn't write region to `%s', decode using `%s' failed"
filename rem-dec)
;; When `file-precious-flag' is set, the region is
;; written to a temporary file. Check that the
(buffer-string))))
(tramp-error
v 'file-error
- (concat "Couldn’t write region to ‘%s’,"
- " decode using ‘%s’ failed")
+ (concat "Couldn't write region to `%s',"
+ " decode using `%s' failed")
filename rem-dec)))))
;; Save exit.
(t
(tramp-error
v 'file-error
- (concat "Method ‘%s’ should specify both encoding and "
+ (concat "Method `%s' should specify both encoding and "
"decoding command or an scp program")
method))))
(tramp-compat-with-temp-message ""
(with-parsed-tramp-file-name file nil
(with-tramp-progress-reporter
- v 3 (format-message "Checking ‘vc-registered’ for %s" file)
+ v 3 (format-message "Checking `vc-registered' for %s" file)
;; There could be new files, created by the vc backend. We
;; cannot reuse the old cache entries, therefore. In
(if (not (processp p))
(tramp-error
v 'file-notify-error
- "‘%s’ failed to start on remote host"
+ "`%s' failed to start on remote host"
(mapconcat 'identity sequence " "))
- (tramp-message v 6 "Run ‘%s’, %S" (mapconcat 'identity sequence " ") p)
+ (tramp-message v 6 "Run `%s', %S" (mapconcat 'identity sequence " ") p)
(tramp-set-connection-property p "vector" v)
(tramp-compat-set-process-query-on-exit-flag p nil)
(set-process-filter p filter)
(tramp-get-connection-process vec) "scripts" nil)))
(unless (member name scripts)
(with-tramp-progress-reporter
- vec 5 (format-message "Sending script ‘%s’" name)
+ vec 5 (format-message "Sending script `%s'" name)
;; In bash, leading TABs like in `tramp-vc-registered-read-file-names'
;; could result in unwanted command expansion. Avoid this.
(setq script (tramp-compat-replace-regexp-in-string
(not (tramp-send-command-and-check
vec (format "%s %s" result nonexistent))))))
(tramp-error
- vec 'file-error "Couldn’t find command to check if file exists"))
+ vec 'file-error "Couldn't find command to check if file exists"))
result))
(defun tramp-open-shell (vec shell)
"Opens shell SHELL."
(with-tramp-progress-reporter
- vec 5 (format-message "Opening remote shell ‘%s’" shell)
+ vec 5 (format-message "Opening remote shell `%s'" shell)
;; Find arguments for this shell.
(let ((alist tramp-sh-extra-args)
item extra-args)
(tramp-message
vec 2
(concat
- "Couldn’t find a remote shell which groks tilde "
- "expansion, using ‘%s’")
+ "Couldn't find a remote shell which groks tilde "
+ "expansion, using `%s'")
default-shell)))
default-shell)))
;; Open a new shell if needed.
(unless (string-equal shell default-shell)
(tramp-message
- vec 5 "Starting remote shell ‘%s’ for tilde expansion" shell)
+ vec 5 "Starting remote shell `%s' for tilde expansion" shell)
(tramp-open-shell vec shell)))))
;; Utility functions.
(tramp-compat-funcall
'set-buffer-process-coding-system cs-decode cs-encode)
(tramp-message
- vec 5 "Setting coding system to ‘%s’ and ‘%s’" cs-decode cs-encode))
+ vec 5 "Setting coding system to `%s' and `%s'" cs-decode cs-encode))
;; Look for ^M and do something useful if found.
(when (search-forward "\r" nil t)
;; We have found a ^M but cannot frob the process coding system
(when (and (stringp old-uname) (not (string-equal old-uname new-uname)))
(tramp-message
vec 3
- "Connection reset, because remote host changed from ‘%s’ to ‘%s’"
+ "Connection reset, because remote host changed from `%s' to `%s'"
old-uname new-uname)
;; We want to keep the password.
(tramp-cleanup-connection vec t t)
tramp-chunksize)
(t
(tramp-message
- vec 5 "Checking remote host type for ‘send-process-string’ bug")
+ vec 5 "Checking remote host type for `send-process-string' bug")
(if (string-match
"^FreeBSD" (tramp-get-connection-property vec "uname" ""))
500 0))))
;; corresponding command has to work locally.
(if (not (stringp loc-enc))
(tramp-message
- vec 5 "Checking local encoding function ‘%s’" loc-enc)
+ vec 5 "Checking local encoding function `%s'" loc-enc)
(tramp-message
- vec 5 "Checking local encoding command ‘%s’ for sanity" loc-enc)
+ vec 5 "Checking local encoding command `%s' for sanity" loc-enc)
(unless (zerop (tramp-call-local-coding-command
loc-enc nil nil))
(throw 'wont-work-local nil)))
(if (not (stringp loc-dec))
(tramp-message
- vec 5 "Checking local decoding function ‘%s’" loc-dec)
+ vec 5 "Checking local decoding function `%s'" loc-dec)
(tramp-message
- vec 5 "Checking local decoding command ‘%s’ for sanity" loc-dec)
+ vec 5 "Checking local decoding command `%s' for sanity" loc-dec)
(unless (zerop (tramp-call-local-coding-command
loc-dec nil nil))
(throw 'wont-work-local nil)))
;; Check the remote test command if exists.
(when (stringp rem-test)
(tramp-message
- vec 5 "Checking remote test command ‘%s’" rem-test)
+ vec 5 "Checking remote test command `%s'" rem-test)
(unless (tramp-send-command-and-check vec rem-test t)
(throw 'wont-work-remote nil)))
;; Check if remote perl exists when necessary.
(setq rem-enc name)))
(tramp-message
vec 5
- "Checking remote encoding command ‘%s’ for sanity" rem-enc)
+ "Checking remote encoding command `%s' for sanity" rem-enc)
(unless (tramp-send-command-and-check
vec (format "%s </dev/null" rem-enc) t)
(throw 'wont-work-remote nil))
(setq rem-dec name)))
(tramp-message
vec 5
- "Checking remote decoding command ‘%s’ for sanity" rem-dec)
+ "Checking remote decoding command `%s' for sanity" rem-dec)
(unless (tramp-send-command-and-check
vec
(format "echo %s | %s | %s" magic rem-enc rem-dec)
(when found
;; Set connection properties. Since the commands are risky
;; (due to output direction), we cache them in the process cache.
- (tramp-message vec 5 "Using local encoding ‘%s’" loc-enc)
+ (tramp-message vec 5 "Using local encoding `%s'" loc-enc)
(tramp-set-connection-property p "local-encoding" loc-enc)
- (tramp-message vec 5 "Using local decoding ‘%s’" loc-dec)
+ (tramp-message vec 5 "Using local decoding `%s'" loc-dec)
(tramp-set-connection-property p "local-decoding" loc-dec)
- (tramp-message vec 5 "Using remote encoding ‘%s’" rem-enc)
+ (tramp-message vec 5 "Using remote encoding `%s'" rem-enc)
(tramp-set-connection-property p "remote-encoding" rem-enc)
- (tramp-message vec 5 "Using remote decoding ‘%s’" rem-dec)
+ (tramp-message vec 5 "Using remote decoding `%s'" rem-dec)
(tramp-set-connection-property p "remote-decoding" rem-dec)))))
(defun tramp-call-local-coding-command (cmd input output)
decompress (nth 1 item))
(tramp-message
vec 5
- "Checking local compress commands ‘%s’, ‘%s’ for sanity"
+ "Checking local compress commands `%s', `%s' for sanity"
compress decompress)
(unless
(zerop
(throw 'next nil))
(tramp-message
vec 5
- "Checking remote compress commands ‘%s’, ‘%s’ for sanity"
+ "Checking remote compress commands `%s', `%s' for sanity"
compress decompress)
(unless (tramp-send-command-and-check
vec (format "echo %s | %s | %s" magic compress decompress) t)
;; risky (due to output direction), we cache them in the
;; process cache.
(tramp-message
- vec 5 "Using inline transfer compress command ‘%s’" compress)
+ vec 5 "Using inline transfer compress command `%s'" compress)
(tramp-set-connection-property p "inline-compress" compress)
(tramp-message
- vec 5 "Using inline transfer decompress command ‘%s’" decompress)
+ vec 5 "Using inline transfer decompress command `%s'" decompress)
(tramp-set-connection-property p "inline-decompress" decompress))
(tramp-set-connection-property p "inline-compress" nil)
(tramp-set-connection-property p "inline-decompress" nil)
(tramp-message
- vec 2 "Couldn’t find an inline transfer compress command")))))
+ vec 2 "Couldn't find an inline transfer compress command")))))
(defun tramp-compute-multi-hops (vec)
"Expands VEC according to `tramp-default-proxies-alist'.
(unless (tramp-file-name-port hop)
(tramp-error
vec 'file-error
- "Connection ‘%s’ is not supported for gateway access." hop))
+ "Connection `%s' is not supported for gateway access." hop))
;; Open the gateway connection.
(push
(vector
(tramp-get-method-parameter item 'tramp-copy-program))
(tramp-error
vec 'file-error
- "Method ‘%s’ is not supported for multi-hops."
+ "Method `%s' is not supported for multi-hops."
(tramp-file-name-method item)))))
;; In case the host name is not used for the remote shell
(string-match tramp-local-host-regexp host))
(tramp-error
v 'file-error
- "Host ‘%s’ looks like a remote host, ‘%s’ can only use the local host"
+ "Host `%s' looks like a remote host, `%s' can only use the local host"
host method)))
;; Result.
;; Check whether process is alive.
(tramp-barf-if-no-shell-prompt
p 10
- "Couldn’t find local shell prompt for %s" tramp-encoding-shell)
+ "Couldn't find local shell prompt for %s" tramp-encoding-shell)
;; Now do all the connections as specified.
(while target-alist
(when r-shell " && exit || exit")))
;; Send the command.
- (tramp-message vec 3 "Sending command ‘%s’" command)
+ (tramp-message vec 3 "Sending command `%s'" command)
(tramp-send-command vec command t t)
(tramp-process-actions
p vec pos tramp-actions-before-shell
(or connection-timeout tramp-connection-timeout))
(tramp-message
- vec 3 "Found remote shell prompt on ‘%s’" l-host))
+ vec 3 "Found remote shell prompt on `%s'" l-host))
;; Next hop.
(setq options ""
target-alist (cdr target-alist)))
"Wait for output from remote command."
(unless (buffer-live-p (process-buffer proc))
(delete-process proc)
- (tramp-error proc 'file-error "Process ‘%s’ not available, try again" proc))
+ (tramp-error proc 'file-error "Process `%s' not available, try again" proc))
(with-current-buffer (process-buffer proc)
(let* (;; Initially, `tramp-end-of-output' is "#$ ". There might
;; be leading escape sequences, which must be ignored.
(if timeout
(tramp-error
proc 'file-error
- "[[Remote prompt ‘%s’ not found in %d secs]]"
+ "[[Remote prompt `%s' not found in %d secs]]"
tramp-end-of-output timeout)
(tramp-error
proc 'file-error
- "[[Remote prompt ‘%s’ not found]]" tramp-end-of-output)))
+ "[[Remote prompt `%s' not found]]" tramp-end-of-output)))
;; Return value is whether end-of-output sentinel was found.
found)))
(goto-char (point-max))
(unless (re-search-backward "tramp_exit_status [0-9]+" nil t)
(tramp-error
- vec 'file-error "Couldn’t find exit status of ‘%s’" command))
+ vec 'file-error "Couldn't find exit status of `%s'" command))
(skip-chars-forward "^ ")
(prog1
(zerop (read (current-buffer)))
(when (if noerror
(tramp-send-command-and-check vec command)
(tramp-barf-unless-okay
- vec command "‘%s’ returns with error" command))
+ vec command "`%s' returns with error" command))
(with-current-buffer (tramp-get-connection-buffer vec)
(goto-char (point-min))
;; Read the marker.
(error (unless noerror
(tramp-error
vec 'file-error
- "‘%s’ does not return the marker ‘%s’: ‘%s’"
+ "`%s' does not return the marker `%s': `%s'"
command marker (buffer-string))))))
;; Read the expression.
(condition-case nil
(error (unless noerror
(tramp-error
vec 'file-error
- "‘%s’ does not return a valid Lisp expression: ‘%s’"
+ "`%s' does not return a valid Lisp expression: `%s'"
command (buffer-string))))))))
(defun tramp-convert-file-attributes (vec attr)
(progn
(tramp-message
vec 3
- "‘getconf PATH’ not successful, using default value \"%s\"."
+ "`getconf PATH' not successful, using default value \"%s\"."
"/bin:/usr/bin")
"/bin:/usr/bin"))))
(own-remote-path
(defun tramp-get-ls-command (vec)
(with-tramp-connection-property vec "ls"
- (tramp-message vec 5 "Finding a suitable ‘ls’ command")
+ (tramp-message vec 5 "Finding a suitable `ls' command")
(or
(catch 'ls-found
(dolist (cmd '("ls" "gnuls" "gls"))
(setq result (concat result " --color=never")))
(throw 'ls-found result))
(setq dl (cdr dl))))))
- (tramp-error vec 'file-error "Couldn’t find a proper ‘ls’ command"))))
+ (tramp-error vec 'file-error "Couldn't find a proper `ls' command"))))
(defun tramp-get-ls-command-with-dired (vec)
(save-match-data
(with-tramp-connection-property vec "ls-dired"
- (tramp-message vec 5 "Checking, whether ‘ls --dired’ works")
+ (tramp-message vec 5 "Checking, whether `ls --dired' works")
;; Some "ls" versions are sensible wrt the order of arguments,
;; they fail when "-al" is after the "--dired" argument (for
;; example on FreeBSD).
(defun tramp-get-ls-command-with-quoting-style (vec)
(save-match-data
(with-tramp-connection-property vec "ls-quoting-style"
- (tramp-message vec 5 "Checking, whether ‘ls --quoting-style=shell’ works")
+ (tramp-message vec 5 "Checking, whether `ls --quoting-style=shell' works")
;; Some "ls" versions are sensible wrt the order of arguments,
;; they fail when "-al" is after the "--dired" argument (for
;; example on FreeBSD).
(defun tramp-get-test-command (vec)
(with-tramp-connection-property vec "test"
- (tramp-message vec 5 "Finding a suitable ‘test’ command")
+ (tramp-message vec 5 "Finding a suitable `test' command")
(if (tramp-send-command-and-check vec "test 0")
"test"
(tramp-find-executable vec "test" (tramp-get-remote-path vec)))))
(defun tramp-get-remote-ln (vec)
(with-tramp-connection-property vec "ln"
- (tramp-message vec 5 "Finding a suitable ‘ln’ command")
+ (tramp-message vec 5 "Finding a suitable `ln' command")
(tramp-find-executable vec "ln" (tramp-get-remote-path vec))))
(defun tramp-get-remote-perl (vec)
(with-tramp-connection-property vec "perl"
- (tramp-message vec 5 "Finding a suitable ‘perl’ command")
+ (tramp-message vec 5 "Finding a suitable `perl' command")
(let ((result
(or (tramp-find-executable vec "perl5" (tramp-get-remote-path vec))
(tramp-find-executable
(defun tramp-get-remote-stat (vec)
(with-tramp-connection-property vec "stat"
- (tramp-message vec 5 "Finding a suitable ‘stat’ command")
+ (tramp-message vec 5 "Finding a suitable `stat' command")
(let ((result (tramp-find-executable
vec "stat" (tramp-get-remote-path vec)))
tmp)
(defun tramp-get-remote-readlink (vec)
(with-tramp-connection-property vec "readlink"
- (tramp-message vec 5 "Finding a suitable ‘readlink’ command")
+ (tramp-message vec 5 "Finding a suitable `readlink' command")
(let ((result (tramp-find-executable
vec "readlink" (tramp-get-remote-path vec))))
(when (and result
(defun tramp-get-remote-trash (vec)
(with-tramp-connection-property vec "trash"
- (tramp-message vec 5 "Finding a suitable ‘trash’ command")
+ (tramp-message vec 5 "Finding a suitable `trash' command")
(tramp-find-executable vec "trash" (tramp-get-remote-path vec))))
(defun tramp-get-remote-touch (vec)
(with-tramp-connection-property vec "touch"
- (tramp-message vec 5 "Finding a suitable ‘touch’ command")
+ (tramp-message vec 5 "Finding a suitable `touch' command")
(let ((result (tramp-find-executable
vec "touch" (tramp-get-remote-path vec)))
(tmpfile
(defun tramp-get-remote-gvfs-monitor-dir (vec)
(with-tramp-connection-property vec "gvfs-monitor-dir"
- (tramp-message vec 5 "Finding a suitable ‘gvfs-monitor-dir’ command")
+ (tramp-message vec 5 "Finding a suitable `gvfs-monitor-dir' command")
(tramp-find-executable
vec "gvfs-monitor-dir" (tramp-get-remote-path vec) t t)))
(defun tramp-get-remote-inotifywait (vec)
(with-tramp-connection-property vec "inotifywait"
- (tramp-message vec 5 "Finding a suitable ‘inotifywait’ command")
+ (tramp-message vec 5 "Finding a suitable `inotifywait' command")
(tramp-find-executable vec "inotifywait" (tramp-get-remote-path vec) t t)))
(defun tramp-get-remote-id (vec)
(with-tramp-connection-property vec "id"
- (tramp-message vec 5 "Finding POSIX ‘id’ command")
+ (tramp-message vec 5 "Finding POSIX `id' command")
(catch 'id-found
(dolist (cmd '("id" "gid"))
(let ((dl (tramp-get-remote-path vec))
(defun tramp-get-remote-python (vec)
(with-tramp-connection-property vec "python"
- (tramp-message vec 5 "Finding a suitable ‘python’ command")
+ (tramp-message vec 5 "Finding a suitable `python' command")
(or (tramp-find-executable vec "python" (tramp-get-remote-path vec))
(tramp-find-executable vec "python2" (tramp-get-remote-path vec))
(tramp-find-executable vec "python3" (tramp-get-remote-path vec)))))
"Read from server failed, maybe it closed the connection"
"Call timed out: server did not respond"
"\\S-+: command not found"
- "Server doesn’t support UNIX CIFS calls"
+ "Server doesn't support UNIX CIFS calls"
,(regexp-opt
'(;; Samba.
"ERRDOS"
(tramp-smb-get-localname v2)))
(tramp-error
v2 'file-error
- "error with add-name-to-file, see buffer ‘%s’ for details"
+ "error with add-name-to-file, see buffer `%s' for details"
(buffer-name))))))
(defun tramp-smb-action-with-tar (proc vec)
(tramp-flush-file-property v localname)
(unless (tramp-smb-get-share v)
(tramp-error
- v 'file-error "Target ‘%s’ must contain a share name" newname))
+ v 'file-error "Target `%s' must contain a share name" newname))
(unless (tramp-smb-send-command
v (format "put \"%s\" \"%s\""
filename (tramp-smb-get-localname v)))
(tramp-error
- v 'file-error "Cannot copy ‘%s’ to ‘%s’" filename newname))))))
+ v 'file-error "Cannot copy `%s' to `%s'" filename newname))))))
;; KEEP-DATE handling.
(when keep-date
(goto-char (point-min))
(search-forward-regexp tramp-smb-errors nil t)
(tramp-error
- v 'file-error "%s ‘%s’" (match-string 0) directory))))))
+ v 'file-error "%s `%s'" (match-string 0) directory))))))
(defun tramp-smb-handle-delete-file (filename &optional _trash)
"Like `delete-file' for Tramp files."
(goto-char (point-min))
(search-forward-regexp tramp-smb-errors nil t)
(tramp-error
- v 'file-error "%s ‘%s’" (match-string 0) filename))))))
+ v 'file-error "%s `%s'" (match-string 0) filename))))))
(defun tramp-smb-handle-directory-files
(directory &optional full match nosort)
(unless (file-exists-p filename)
(tramp-error
v 'file-error
- "Cannot make local copy of non-existing file ‘%s’" filename))
+ "Cannot make local copy of non-existing file `%s'" filename))
(let ((tmpfile (tramp-compat-make-temp-file filename)))
(with-tramp-progress-reporter
v 3 (format "Fetching %s to tmp file %s" filename tmpfile)
;; Oops, an error. We shall cleanup.
(delete-file tmpfile)
(tramp-error
- v 'file-error "Cannot make local copy of file ‘%s’" filename)))
+ v 'file-error "Cannot make local copy of file `%s'" filename)))
tmpfile)))
;; This function should return "foo/" for directories and "bar" for
(when (file-directory-p ldir)
(make-directory-internal dir))
(unless (file-directory-p dir)
- (tramp-error v 'file-error "Couldn’t make directory %s" dir))))))
+ (tramp-error v 'file-error "Couldn't make directory %s" dir))))))
(defun tramp-smb-handle-make-directory-internal (directory)
"Like `make-directory-internal' for Tramp files."
(tramp-flush-file-property v localname))
(unless (file-directory-p directory)
(tramp-error
- v 'file-error "Couldn’t make directory %s" directory))))))
+ v 'file-error "Couldn't make directory %s" directory))))))
(defun tramp-smb-handle-make-symbolic-link
(filename linkname &optional ok-if-already-exists)
(tramp-smb-get-localname v2)))
(tramp-error
v2 'file-error
- "error with make-symbolic-link, see buffer ‘%s’ for details"
+ "error with make-symbolic-link, see buffer `%s' for details"
(buffer-name))))))
(defun tramp-smb-handle-process-file
(tramp-flush-file-property v2 v2-localname)
(unless (tramp-smb-get-share v2)
(tramp-error
- v2 'file-error "Target ‘%s’ must contain a share name" newname))
+ v2 'file-error "Target `%s' must contain a share name" newname))
(unless (tramp-smb-send-command
v2 (format "rename \"%s\" \"%s\""
(tramp-smb-get-localname v1)
(tramp-smb-get-localname v2)))
- (tramp-error v2 'file-error "Cannot rename ‘%s’" filename))))
+ (tramp-error v2 'file-error "Cannot rename `%s'" filename))))
;; We must rename via copy.
(tramp-compat-copy-file filename newname ok-if-already-exists t t t)
(unless (re-search-backward "tramp_exit_status [0-9]+" nil t)
(tramp-error
v 'file-error
- "Couldn’t find exit status of ‘%s’" tramp-smb-acl-program))
+ "Couldn't find exit status of `%s'" tramp-smb-acl-program))
(skip-chars-forward "^ ")
(when (zerop (read (current-buffer)))
;; Success.
(tramp-smb-get-localname v)
(tramp-compat-decimal-to-octal mode)))
(tramp-error
- v 'file-error "Error while changing file’s mode %s" filename)))))
+ v 'file-error "Error while changing file's mode %s" filename)))))
;; We use BUFFER also as connection buffer during setup. Because of
;; this, its original contents must be saved, and restored once
(unless (tramp-smb-send-command
v (format "put %s \"%s\""
tmpfile (tramp-smb-get-localname v)))
- (tramp-error v 'file-error "Cannot write ‘%s’" filename))
+ (tramp-error v 'file-error "Cannot write `%s'" filename))
(delete-file tmpfile)))
(unless (equal curbuf (current-buffer))
(tramp-error
v 'file-error
- "Buffer has changed from ‘%s’ to ‘%s’" curbuf (current-buffer)))
+ "Buffer has changed from `%s' to `%s'" curbuf (current-buffer)))
(when (eq visit t)
(set-visited-file-modtime)))))
;; Loop the listing.
(goto-char (point-min))
(if (re-search-forward tramp-smb-errors nil t)
- (tramp-error v 'file-error "%s ‘%s’" (match-string 0) directory)
+ (tramp-error v 'file-error "%s `%s'" (match-string 0) directory)
(while (not (eobp))
(setq entry (tramp-smb-read-file-entry share))
(forward-line)