Gregor Zattler <telegr...@gmx.net> writes:

> Hi Michael,

Hi Gregor,

> Is the string "android" in this setting :
>
>     (connection-local-set-profiles
>      '(:application tramp :machine "android")
>      'tramp-connection-local-termux-profile)
>
> a regexp?

No. It is the host name (plus port, if specified).

> I'm having trouble to have one setting
> which covers various ways to name the
> same machine, hiere:
>
> andrid
> android.lan
> android.lan#2222
>
> etc.  But this is a minor concern, i can
> use the same way of addressing the machine.

>     (connection-local-set-profiles
>      '(:application tramp :machine "android")
>      'tramp-connection-local-termux-profile)

(dolist (host '("android" "android.lan" "android.lan#2222"))
  (connection-local-set-profiles
   `(:application tramp :machine ,host)
   'tramp-connection-local-termux-profile))

Untested, of course :-)

> Ciao; Gregor

Best regards, Michael.

Reply via email to