Enter your bug report in this message, including as much detail as you
possibly can about the problem, what you did to cause it and what the
local and remote machines are.
If you can give a simple set of instructions to make this bug happen
reliably, please include those. Thank you for helping kill bugs in
TRAMP.
--bug report follows this line--
I have defined two tramp-methods
* 't' for inline, using plink
* 'u' for external, using pscp and plink
For purposes of investigation (to make the behavior clearer) I also
made two files. The first, appropriately named 1.html, has (broken for
mail)
> <!-- eval:(abbrev-mode 1) -->
> <!-- eval:(read-abbrev-file
> "/r@t:[EMAIL PROTECTED]:/ncsu/tlroche/www/eng331/abbrevs" t) -->
> <!-- End: -->
at the end. The other (2.html) is a copy of the first, except it has
> "/r@u:[EMAIL PROTECTED]:/ncsu/tlroche/www/eng331/abbrevs" t) -->
Note the difference of method. Here's the annoyance: if I do
C-x C-f /r@t:[EMAIL PROTECTED]:/ncsu/tlroche/www/eng331/1.html
it prompts me regarding the eval, then just loads the abbrevs file.
But if I do
C-x C-f /r@t:[EMAIL PROTECTED]:/ncsu/tlroche/www/eng331/2.html
then tramp creates an entirely-new connection (with all the delay that
entails): since I have verbose on, I see all the connections.
It would be nice if, even if the method changed, tramp would reuse the
existing connection to the target, as it does when the methods are the
same.
TIA, [EMAIL PROTECTED]
Emacs : GNU Emacs 20.7.1 (i386-*-nt5.0.2195)
of Tue Jun 13 2000 on buffy
Package: tramp ($Id: tramp.el,v 2.12 2001/03/26 05:03:20 daniel Exp $)
current state:
==============
(setq
tramp-ls-command nil
tramp-test-groks-nt nil
tramp-file-exists-command nil
tramp-current-method nil
tramp-current-user nil
tramp-current-host nil
tramp-auto-save-directory "d:/temp"
tramp-default-method "u"
tramp-rsh-end-of-line "\n"
tramp-remote-path '("/external/apps/perl5.6/bin" "/ncsu/rcstools/bin"
"/bin" "/usr/bin" "/usr/sbin" "/usr/local/bin"
"/usr/ccs/bin" "/local/bin" "/local/freeware/bin"
"/local/gnu/bin" "/usr/freeware/bin"
"/usr/pkg/bin")
tramp-login-prompt-regexp ".*ogin: *$"
tramp-password-prompt-regexp "^.*\\([pP]assword\\|passphrase.*\\):^@?
*$"
tramp-wrong-passwd-regexp "^.*\\(Permission denied.\\|Login
[Ii]ncorrect\\|Received signal [0-9]+\\|Connection
\\(refused\\|closed\\)\\|Sorry, try again.\\|Name or service not
known\\).*$"
tramp-temp-name-prefix "tramp."
tramp-file-name-structure
'("\\`/r\\(@\\([a-z0-9]+\\)\\)?:\\(\\([-a-z0-9_#]+\\)@\\)?\\([-a-z0-9.]+\\):\\(.*\\)\\'"
2 4 5 6)
tramp-file-name-regexp "\\`/r[@:]"
tramp-make-tramp-file-format "/r@%m:%u@%h:%p"
tramp-end-of-output "/////"
shell-prompt-pattern "^.*/ncsu/tlroche> "
backup-by-copying nil
backup-by-copying-when-linked nil
backup-by-copying-when-mismatch nil
)