From 1606c2d38472f1b95776ce0aa3d07d465db0933e Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Fri, 8 Nov 2013 10:31:50 +0100 Subject: [PATCH] * net/tramp-sh.el (tramp-set-remote-path, tramp-get-ls-command): Remove instrumentation code. --- lisp/ChangeLog | 5 +++++ lisp/net/tramp-sh.el | 26 ++------------------------ 2 files changed, 7 insertions(+), 24 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2970d7f1e4b..b8922fdaf04 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-11-08 Michael Albinus + + * net/tramp-sh.el (tramp-set-remote-path, tramp-get-ls-command): + Remove instrumentation code. + 2013-11-08 Glenn Morris * progmodes/autoconf.el (autoconf-mode): diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 77965b67c71..f8b99dd918e 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -3576,12 +3576,6 @@ This function expects to be in the right *tramp* buffer." I.e., for each directory in `tramp-remote-path', it is tested whether it exists and if so, it is added to the environment variable PATH." - (when (featurep 'ert) - (ignore-errors - (with-demoted-errors - (message - "tramp-set-remote-path:\n%s\n" - (tramp-send-command-and-read vec "echo PATH=$PATH"))))) (tramp-message vec 5 "Setting $PATH environment variable") (tramp-send-command vec (format "PATH=%s; export PATH" @@ -4837,23 +4831,7 @@ Return ATTR." remote-path))))) (defun tramp-get-ls-command (vec) -; (with-tramp-connection-property vec "ls" - (when (featurep 'ert) - (ignore-errors - (with-demoted-errors - (message - "tramp-get-ls-command printenv:\n%s\n" - (tramp-send-command-and-read - vec "echo \"\\\"`(printenv | sort) || exit`\\\"\""))) - (with-demoted-errors - (message - "tramp-get-ls-command getconf PATH:\n%s\n" - (tramp-send-command-and-read - vec "echo \\\"`getconf PATH 2>/dev/null || exit`\\\""))) - (with-demoted-errors - (message - "tramp-get-ls-command whereis ls:\n%s\n" - (tramp-send-command-and-read vec "echo \"\\\"`whereis ls || exit`\\\"\""))))) + (with-tramp-connection-property vec "ls" (tramp-message vec 5 "Finding a suitable `ls' command") (or (catch 'ls-found @@ -4875,7 +4853,7 @@ Return ATTR." (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 -- 2.11.4.GIT