[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TRAMP can't expand local environment variable
From: |
Michael Albinus |
Subject: |
Re: TRAMP can't expand local environment variable |
Date: |
Sun, 27 Apr 2008 11:55:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> In the Windows version of GNU Emacs (22.2.1) TRAMP cannot expand
>> local environment variables. For example, I set an environment
>> value such as NODE=ingersol@thatnode.network.com. With ANGE-FTP I
>> could QED use "$NODE:work/myfile.txt" within the "Find file"
>> dialogue and start the process of file retrieval and editing. Not
>> with TRAMP in the way. With TRAMP I get "Not a Tramp file name:".
>
> Indeed, it looks like we have a problem in
> tramp-find-foreign-file-name-handler: first tramp-tramp-file-p says that
> `filename' is a Tramp file, and then tramp-dissect-file-name stabs us in
> the back with an error "Not a Tramp file name:".
>
> (defun tramp-find-foreign-file-name-handler (filename)
> "Return foreign file name handler if exists."
> (when (and (stringp filename) (tramp-tramp-file-p filename))
> (let ((v (tramp-dissect-file-name filename t))
>
> Either the two functions need to be make mutually consistent, or we need
> some `ignore-errors' around this function.
> Michael, can you DTRT?
I've fixed it in both Emacs 22 (containing Tramp 2.0) and Emacs 23
(which comes with Tramp 2.1). The fix for Tramp 2.0 is appended. If
desired, I could send also the patch for Tramp 2.1 as email.
> Stefan
Best regards, Michael.
PS: I'll be offline from Tuesday to Friday. Further answers from me
might be delayed therefore.
txtD1m0EYZuff.txt
Description: Text Data
Re: TRAMP can't expand local environment variable, Michael Albinus, 2008/04/27