aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2013-11-08 10:31:50 +0100
committerMichael Albinus2013-11-08 10:31:50 +0100
commit1606c2d38472f1b95776ce0aa3d07d465db0933e (patch)
tree9f03ae7594d9426c55f74c6ddc09518ad00d8f33
parent1c49d6c2fec75f4e205c32df04d4672dd75bb58e (diff)
downloademacs-1606c2d38472f1b95776ce0aa3d07d465db0933e.tar.gz
emacs-1606c2d38472f1b95776ce0aa3d07d465db0933e.zip
* net/tramp-sh.el (tramp-set-remote-path, tramp-get-ls-command):
Remove instrumentation code.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/tramp-sh.el26
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 @@
12013-11-08 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp-sh.el (tramp-set-remote-path, tramp-get-ls-command):
4 Remove instrumentation code.
5
12013-11-08 Glenn Morris <rgm@gnu.org> 62013-11-08 Glenn Morris <rgm@gnu.org>
2 7
3 * progmodes/autoconf.el (autoconf-mode): 8 * 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."
3576I.e., for each directory in `tramp-remote-path', it is tested 3576I.e., for each directory in `tramp-remote-path', it is tested
3577whether it exists and if so, it is added to the environment 3577whether it exists and if so, it is added to the environment
3578variable PATH." 3578variable PATH."
3579 (when (featurep 'ert)
3580 (ignore-errors
3581 (with-demoted-errors
3582 (message
3583 "tramp-set-remote-path:\n%s\n"
3584 (tramp-send-command-and-read vec "echo PATH=$PATH")))))
3585 (tramp-message vec 5 "Setting $PATH environment variable") 3579 (tramp-message vec 5 "Setting $PATH environment variable")
3586 (tramp-send-command 3580 (tramp-send-command
3587 vec (format "PATH=%s; export PATH" 3581 vec (format "PATH=%s; export PATH"
@@ -4837,23 +4831,7 @@ Return ATTR."
4837 remote-path))))) 4831 remote-path)))))
4838 4832
4839(defun tramp-get-ls-command (vec) 4833(defun tramp-get-ls-command (vec)
4840; (with-tramp-connection-property vec "ls" 4834 (with-tramp-connection-property vec "ls"
4841 (when (featurep 'ert)
4842 (ignore-errors
4843 (with-demoted-errors
4844 (message
4845 "tramp-get-ls-command printenv:\n%s\n"
4846 (tramp-send-command-and-read
4847 vec "echo \"\\\"`(printenv | sort) || exit`\\\"\"")))
4848 (with-demoted-errors
4849 (message
4850 "tramp-get-ls-command getconf PATH:\n%s\n"
4851 (tramp-send-command-and-read
4852 vec "echo \\\"`getconf PATH 2>/dev/null || exit`\\\"")))
4853 (with-demoted-errors
4854 (message
4855 "tramp-get-ls-command whereis ls:\n%s\n"
4856 (tramp-send-command-and-read vec "echo \"\\\"`whereis ls || exit`\\\"\"")))))
4857 (tramp-message vec 5 "Finding a suitable `ls' command") 4835 (tramp-message vec 5 "Finding a suitable `ls' command")
4858 (or 4836 (or
4859 (catch 'ls-found 4837 (catch 'ls-found
@@ -4875,7 +4853,7 @@ Return ATTR."
4875 (setq result (concat result " --color=never"))) 4853 (setq result (concat result " --color=never")))
4876 (throw 'ls-found result)) 4854 (throw 'ls-found result))
4877 (setq dl (cdr dl)))))) 4855 (setq dl (cdr dl))))))
4878 (tramp-error vec 'file-error "Couldn't find a proper `ls' command")));) 4856 (tramp-error vec 'file-error "Couldn't find a proper `ls' command"))))
4879 4857
4880(defun tramp-get-ls-command-with-dired (vec) 4858(defun tramp-get-ls-command-with-dired (vec)
4881 (save-match-data 4859 (save-match-data