On Fri, 09 Mar 2001, Tom Roche wrote:
> Presuming TRAMP2 is still wish-list-able, could I suggest what might
> be a feature?
Of course it is. It's not likely to /stop/ being enhanced before it dies
of old age. :)
> I work with several servers, more than a few of which have ungodly
> long user/host/paths: e.g.
[...]
> PuTTY, like many FTPs, has a nice feature whereby one can save the
> details of a connection setup (notably server name) with a short
> label. PuTTY calls these 'Saved Sessions': I prefer to think of them
> as aliases. Thus having once made and saved a connection to the above
> server as 'w2', I need only type
[...]
> So I was wondering: might it be possible to provide a similar
> functionality in TRAMP? Extra points if one could alias a path as well
> as user/hostname: if I could do something like
>
> + C-x C-f /r@t;v4/ScoreAnalysis.pm
>
> instead of (broken for mail)
>
> - C-x C-f /r@t:[EMAIL PROTECTED]:/local/dev/tlroche/
> - webassign/v4/ScoreAnalysis.pm
>
> I'd be thrilled. You may, of course, substitute <your token here> for
> ';'.
You could have a putty protocol that used the `@' syntax, happily
enough. Then the host part would be fine. Since you would need to add
the protocol anyhow...
In any case, I don't think it's a bad idea. Grab the tramp2 sources and
look at the construction of the file-names as is. Then make a suggestion
about exactly what to use there. :)
Directory aliases can be done trivially using environment variable
substitutions, I think. Does this do what you need:
(setenv "src" "/local/dev/tlroche")
C-x C-f /.../$src/Score...
TRAMP v2 will support expanding local and remote environment variables
(in that order) fairly soon...
Daniel
--
Most people's C programs should be indented
six feet downward and covered with dirt.
-- Blair P. Houghton