On 15 September 2014 18:32, Michael Albinus <[email protected]> wrote:
> MM <[email protected]> writes:
>
>> On removal of everything, tramp launches a ftp.exe, as I don't have
>> this plink anywhere anymore
>
> I don't catch it. What do you mean with "removal of everything"?.
I've commented out all the sections you suggested to comment out.

At that point there's no reference to plink anymore. And a ftp is
lauched which obviously fails.

(require 'tramp)  ;; uses 2.2.9 now
(require 'tramp-sh)
(setq tramp-verbose 6)
(defconst my-tramp-prompt-regexp
  (concat (regexp-quote "Host:") "\\s-*")
  "Regular expression matching my login prompt question.")
(defun my-tramp-action (proc vec)
  "Enter the host name in order to give a correct answer."
  (save-window-excursion
    (with-current-buffer (tramp-get-connection-buffer vec)
      (tramp-message vec 6 "\n%s" (buffer-string))
      (tramp-send-string vec "host"))))
(add-to-list 'tramp-actions-before-shell
              '(my-tramp-prompt-regexp my-tramp-action))

_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to