[Top][All Lists]

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

Re: Saving new file fails on Windows

From: Michael Albinus
Subject: Re: Saving new file fails on Windows
Date: Thu, 01 Feb 2007 23:41:35 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux)

Jyrki Jaakkola <address@hidden> writes:

> Hello!


> 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?

Tramp has decided for that directory because it is the value of the
environment variable $TEMP or $TMP or $TMPDIR.

> 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.

> Jyrki Jaakkola

Best regards, Michael.

reply via email to

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