bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TRAMP can't expand local environment variable


From: Stefan Monnier
Subject: Re: TRAMP can't expand local environment variable
Date: Fri, 25 Apr 2008 21:30:56 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>     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 address@hidden  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?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]