"Qichen Huang" <address@hidden> writes:
> I use plink to connect ssh server. The connection is fine, I can list the
> directory on remote server.
> But I can not open files. The error message is:
Finally I could catch the bug. It took a while, because it happens
only when your home directory is located on a different drive as the
temp directory.
The following patch should fix it:
Index: lisp/tramp.el
===================================================================
RCS file: /cvsroot/tramp/tramp/lisp/tramp.el,v
retrieving revision 2.531
diff -c -r2.531 tramp.el
*** lisp/tramp.el 13 Jan 2007 19:59:33 -0000 2.531
--- lisp/tramp.el 26 Mar 2007 20:02:29 -0000
***************
*** 3174,3182 ****
(unless (file-name-absolute-p name)
(setq name (concat (file-name-as-directory dir) name)))
;; If NAME is not a tramp file, run the real handler
! (if (or (tramp-completion-mode) (not (tramp-tramp-file-p name)))
! (tramp-drop-volume-letter
! (tramp-run-real-handler 'expand-file-name (list name nil)))
;; Dissect NAME.
(with-parsed-tramp-file-name name nil
(unless (file-name-absolute-p localname)
--- 3174,3181 ----
(unless (file-name-absolute-p name)
(setq name (concat (file-name-as-directory dir) name)))
;; If NAME is not a tramp file, run the real handler
! (if (not (tramp-tramp-file-p name))
! (tramp-run-real-handler 'expand-file-name (list name nil))
;; Dissect NAME.
(with-parsed-tramp-file-name name nil
(unless (file-name-absolute-p localname)
Best regards, Michael.