I use `rsync' as my `tramp-default-method' since it gives me the best
performance.  But sometimes I need to edit a remote file as root, so I
simply append `/-:server|sudo::'.  This immediately yields the error:

  Method ‘rsync’ is not supported for multi-hops

I looked at configuring `tramp-default-method-alist', but it does not
apparently match against the full (multi-hop) tramp file syntax, only
individual hosts/users.  What I'd like is something like a
`tramp-default-method-multihop`: a default method to use for any prior
"default method" markers, as soon as a multi-hop file is detected.  So:

  /-:server:  -> `tramp-default-method-alist'  -> `tramp-default-method'
  /-:server|  -> `tramp-default-method-multihop'

But maybe there's already a way with current configuration options?  Or
perhaps the current configuration like `tramp-default-method-alist'
could be extended, to provide a multi-hop flag for the alist
configuration?


Reply via email to