tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to configure my bastion ?


From: Michael Albinus
Subject: Re: How to configure my bastion ?
Date: Wed, 09 May 2012 14:31:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

Stéphane Senesi <address@hidden> writes:

> Dear Michael

Hi Stéphane,

> However,
>
>     - at startup, even after a "(require 'tramp)", I have :
>
>           Symbol's value as variable is void: tramp-actions-before-shell
>
>      and I must first contact an host using tramp to have it
> defined. How could I ease that?

tramp-actions-before-shell is declared in tramp-sh.el (which is
autoloaded when needed). So you might try

(require 'tramp-sh)

Which loads also tramp.el.

>     - Emacs-Lisp complains about the 'let' clause

Oops, untested code. Try this one:

(defun my-tramp-action (proc vec)
   "Enter the ssh ID depending on the host."
   (save-window-excursion
     (let ((host (tramp-file-name-host vec)))
       (with-current-buffer (tramp-get-connection-buffer vec)
         (tramp-message vec 6 "\n%s" (buffer-string))
         (cond
           ((string-equal host "rjvg003-gaya")
            (tramp-send-string vec "0"))
           ((string-equal ... )))))))

> Regards
>
> S

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]