Mercurial > emacs
diff lisp/net/tramp-sh.el @ 110374:932697ced7aa
* net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords, tramp-compat-process-get)
(tramp-compat-process-put): New defuns.
* net/tramp.el (top):
* net/tramp-gvfs.el (top):
* net/tramp-cache.el (top): Use `tramp-compat-font-lock-add-keywords'.
* net/tramp.el (tramp-progress-reporter-update): Use
`tramp-compat-funcall.
* net/tramp.el (tramp-process-actions):
* net/tramp-gvfs.el (tramp-handle-vc-registered):
* net/tramp-sh.el (tramp-gvfs-handler-askquestion)
(tramp-get-remote-stat, tramp-get-remote-readlink): Use
`tramp-compat-with-temp-message'.
* net/tramp-sh.el (top): Require 'cl.
(tramp-handle-start-file-process): Use `tramp-compat-process-get'.
(tramp-open-connection-setup-interactive-shell): Use
`tramp-compat-process-put'.
author | Michael Albinus <michael.albinus@gmx.de> |
---|---|
date | Wed, 15 Sep 2010 22:27:11 +0200 |
parents | 4b26adbef9a2 |
children | 4e901a2d3669 |
line wrap: on
line diff
--- a/lisp/net/tramp-sh.el Wed Sep 15 18:03:25 2010 +0000 +++ b/lisp/net/tramp-sh.el Wed Sep 15 22:27:11 2010 +0200 @@ -27,6 +27,7 @@ ;;; Code: +(eval-when-compile (require 'cl)) ; ignore-errors (require 'tramp) (require 'shell) @@ -2855,7 +2856,8 @@ (tramp-send-command v command nil t) ; nooutput ;; Check, whether a pty is associated. (tramp-maybe-open-connection v) - (unless (process-get (tramp-get-connection-process v) 'remote-tty) + (unless (tramp-compat-process-get + (tramp-get-connection-process v) 'remote-tty) (tramp-error v 'file-error "pty association is not supported for `%s'" name))) (let ((p (tramp-get-connection-process v))) @@ -3659,7 +3661,7 @@ ;; any other remote command. (defun tramp-handle-vc-registered (file) "Like `vc-registered' for Tramp files." - (with-temp-message "" + (tramp-compat-with-temp-message "" (with-parsed-tramp-file-name file nil (with-progress-reporter v 3 (format "Checking `vc-registered' for %s" file) @@ -4139,7 +4141,8 @@ ;; Set `remote-tty' process property. (ignore-errors (let ((tty (tramp-send-command-and-read vec "echo \\\"`tty`\\\""))) - (unless (zerop (length tty)) (process-put proc 'remote-tty tty)))) + (unless (zerop (length tty)) + (tramp-compat-process-put proc 'remote-tty tty)))) ;; Set the environment. (tramp-message vec 5 "Setting default environment") @@ -5268,7 +5271,7 @@ (when result (setq tmp ;; We don't want to display an error message. - (with-temp-message (or (current-message) "") + (tramp-compat-with-temp-message (or (current-message) "") (ignore-errors (tramp-send-command-and-read vec (format "%s -c '(\"%%N\" %%s)' /" result))))) @@ -5285,7 +5288,7 @@ vec "readlink" (tramp-get-remote-path vec)))) (when (and result ;; We don't want to display an error message. - (with-temp-message (or (current-message) "") + (tramp-compat-with-temp-message (or (current-message) "") (ignore-errors (tramp-send-command-and-check vec (format "%s --canonicalize-missing /" result)))))