I've been trying to get tramp working on my Cygwin build of XEmacs on my laptop so
that I can remotely edit some files on my Linux boxes at work. What had been happening is
that tramp would issue a command like (I don't recall the exact command) 'stty
-icrnl
kill ^U', then hang waiting for the next prompt. When I looked at tramp's debug
buffer, it (tramp) was waiting for a regex that made no sense to me. It didn't match
any of the configurable regexs that I could see, then I realized that it was being
constructed in tramp.el from a couple of different regular expressions. What was odd was
that an extra single quote (apostrophe) was being added to the end of the constructed
regular expression. When I removed the (seemingly extraneous) apostrophe and recompiled
tramp.el, everything magically worked. Here's the diff:
--- tramp.el.orig 2007-06-11 00:18:04.000000000 -0700
+++ tramp.el 2008-03-04 13:24:26.193564400 -0700
@@ -6063,7 +6063,7 @@
and `tramp-shell-prompt-pattern'."
(tramp-wait-for-regexp
proc timeout
- (format "\\(%s\\|%s\\)\\'"
+ (format "\\(%s\\|%s\\)"
shell-prompt-pattern tramp-shell-prompt-pattern)))
Can anyone tell me if that extra apostrophe actually belongs there and if so, why? I
don't see how it could work unless you're prompt actually ends with an
apostrophe.
Thanks,
--Rick
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta