tramp-devel
[Top][All Lists]
Advanced

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

Re: Saving new file fails on Windows


From: Jyrki Jaakkola
Subject: Re: Saving new file fails on Windows
Date: Fri, 02 Feb 2007 02:03:17 +0200
User-agent: Thunderbird 1.5.0.9 (Windows/20061207)

Michael Albinus wrote:
Jyrki Jaakkola <address@hidden> writes:
When I tried saving a new file which I had opened with tramp I got an
error and here is the back trace:

Debugger entered--Lisp error: (file-error "Opening output file" "no
such file or directory"
"/DOCUME~1/JYRKIJ~1/LOCALS~1/Temp/tramp.2356hge")
  write-region("" nil
"c:/DOCUME~1/JYRKIJ~1/LOCALS~1/Temp/tramp.2356hge" nil silent nil
excl)
  byte-code("unreadable" [prefix temporary-file-directory file
dir-flag make-temp-name expand-file-name make-directory write-region
"" nil silent excl] 8)
  make-temp-file("c:/DOCUME~1/JYRKIJ~1/LOCALS~1/Temp/tramp.")

Tramp tries to create a local temporary file. It uses
"c:/DOCUME~1/JYRKIJ~1/LOCALS~1/Temp/" as directorary for that
file. Could you, please, check whether this directory exists, and
whether it is writable?

Yes, it is existing directory although Local Settings directory is hidden directory. I even tried changing temporary directory to c:\Temp (and I created that directory) but it didn't help the situation.

I tested it more and I found out that if I try to save modifications to existing file it fails in same way. So it looks like there is a problem with creation of temp file. But still, when I open existing remote file it can open it normally even though it uses temp file to transfer the file from remote host (or at least that's what I have understood how it works).

It seems that for some reason the temp file which was created didn't
have in the file name the part "2356hge" in the end and because of
that it failed.

Nope. (make-temp-file "c:/DOCUME~1/JYRKIJ~1/LOCALS~1/Temp/tramp.") is
intended to create a temporary file with the parameter as prefix for
that file. That looks correct.

Ok. I'm not very familiar with Emacs and as I skimmed through the source code it looked like possible cause.

Jyrki Jaakkola




reply via email to

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