* Using ssh-host in ssh.el mode hook?
@ 2002-10-29 10:10 Felix E. Klee
2002-10-29 15:19 ` Felix E. Klee
0 siblings, 1 reply; 2+ messages in thread
From: Felix E. Klee @ 2002-10-29 10:10 UTC (permalink / raw)
Hi,
in order to get file name completion via Tramp I added the following code to
the mode hook of ssh mode:
(lambda () (setq comint-file-name-prefix (concat "/ssh:" ssh-host ":")))
However, ssh-host does not seem to be defined at the time the mode hook is
applied. Therefore, after starting an ssh session to somehost,
comint-file-name-prefix contains "/ssh::" instead of "/ssh:somehost:".
Any ideas how to solve this problem?
Felix
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Using ssh-host in ssh.el mode hook?
2002-10-29 10:10 Using ssh-host in ssh.el mode hook? Felix E. Klee
@ 2002-10-29 15:19 ` Felix E. Klee
0 siblings, 0 replies; 2+ messages in thread
From: Felix E. Klee @ 2002-10-29 15:19 UTC (permalink / raw)
Felix E. Klee wrote:
> Any ideas how to solve this problem?
I created a wrapper function that calls
(ssh ssh-args name)
and thereafter
(setq comint-file-name-prefix (concat "/ssh:" ssh-host ":"))
Felix
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-29 15:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-29 10:10 Using ssh-host in ssh.el mode hook? Felix E. Klee
2002-10-29 15:19 ` Felix E. Klee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).