> [...] but tramp-tramp-file-p doesn't seem to work correctly. It returns 0
> for both of the following cases:
>
> (tramp-tramp-file-p "/r:dolphin.mojam.com:delq.mc")
> (tramp-tramp-file-p "/r@scp:dolphin.mojam.com:delq.mc")
>
> which seemed pretty odd to me.  Any clues about what the real solution
> should be?

`tramp-tramp-file-p' returns nil if the argument is not a tramp file. It
returns non-nil if it is a tramp file. It's not exactly intuitive, but zero
is non-nil, so `tramp-tramp-file-p' is working as documented.

For example, try eval'ing the following:

(if (tramp-tramp-file-p "/r:dolphin.mojam.com:delq.mc")
    "yes" "no")

and

(if (tramp-tramp-file-p "not_a_tramp_file")
    "yes" "no")

You should be able to find a workaround for your patch. However, maybe Kai
should consider modifying `tramp-tramp-file-p' to return t, instead of zero.

Reply via email to