From: Pete F. <pet...@we...> - 2001-12-20 16:48:55
|
I've just downloaded XEmacs 21.4.6 and was pleased to see that Tramp is now packaged with it. I'm trying to get it going on W2k in native mode and have come across some problems. The first manifested itself as the error "Couldn't find command to check if file exists.". Investigation showed that it was testing for the existence of backslash (which the shell merged with the following character) rather than slash. Here's a patch which fixes that problem. *** tramp.el.orig Sat Dec 8 11:57:03 2001 --- tramp.el Thu Dec 20 16:13:09 2001 *************** *** 2213,2219 **** (tramp-make-tramp-file-name multi-method method user host (tramp-drop-volume-letter ! (tramp-run-real-handler 'expand-file-name (list path)))))))) ;; Remote commands. --- 2213,2229 ---- (tramp-make-tramp-file-name multi-method method user host (tramp-drop-volume-letter ! (tramp-canonicalize-unix-filename path))))))) ! ! (defun tramp-canonicalize-unix-filename (name) ! "Remove all \"//\", \"/./\" and \"/../\" from UNIX style file names." ! (while (string-match "\\(.*/\\)/\\(.*\\)" name) ! (setq name (concat (match-string 1 name) (match-string 2 name)))) ! (while (string-match "\\(.*/\\)\./\\(.*\\)" name) ! (setq name (concat (match-string 1 name) (match-string 2 name)))) ! (while (string-match "\\(.*/\\)[^/]*/\.\./\\(.*\\)" name) ! (setq name (concat (match-string 1 name) (match-string 2 name)))) ! name) ;; Remote commands. The next problem is not yet cracked. I get an empty buffer with the message "File exists, but cannot be read." *debug tramp/nil nil* contains # Fetching /[rcp/skye]/home/dapd2/formanp/.emacs to tmp file c:\DOCUME~1\formanp\LOCALS~1\Temp\tramp.4aAQJj... # Fetching /[rcp/skye]/home/dapd2/formanp/.emacs to tmp file c:\DOCUME~1\formanp\LOCALS~1\Temp\tramp.4aAQJj...done # Inserting local temp file `c:\DOCUME~1\formanp\LOCALS~1\Temp\tramp.4aAQJj'... *tramp output* contains c: unknown host This is $Id: tramp.el,v 1.2 2001/12/08 11:57:03 youngs Exp $ I'm using the default rcp method to talk to a Solaris box. rcp and rsh are from Cygwin though I'm using the native version of XEmacs OOTB. -- Pete Forman -./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent pet...@we... -./\.- opinion of Schlumberger, Baker http://petef.port5.com (new) -./\.- Hughes or their divisions. |