Dan Davison <[email protected]> writes:

> Hi Michael,

Hi,

> I'm having problems applying the above advice. Specifically, my problem
> is with make-temp-file:
>
> (make-temp-file "/yakuba:/tmp/tramp")
> (tramp-compat-make-temp-file "/yakuba:/tmp/tramp")
> ;; Both make local file in /tmp with error
> ;; Wrong type argument: number-or-marker-p, ""

That's an error. The following patch shall fix it:

--8<---------------cut here---------------start------------->8---
*** /tmp/ediff29926PsA  2010-02-28 12:09:59.124648992 +0100
--- /mnt/src/tramp/lisp/tramp.el        2010-02-28 12:05:06.000000000 +0100
***************
*** 5057,5063 ****
           ;; `rename-file' handles direct copy and out-of-band methods.
           ((or (tramp-local-host-p v)
                (tramp-method-out-of-band-p
!                v (- (or end (point-max)) (or start (point-min)))))
            (if (and (= (or end (point-max)) (point-max))
                     (= (or start (point-min)) (point-min))
                     (tramp-get-method-parameter
--- 5057,5063 ----
           ;; `rename-file' handles direct copy and out-of-band methods.
           ((or (tramp-local-host-p v)
                (tramp-method-out-of-band-p
!                v (nth 7 (file-attributes tmpfile))))
            (if (and (= (or end (point-max)) (point-max))
                     (= (or start (point-min)) (point-min))
                     (tramp-get-method-parameter
--8<---------------cut here---------------end--------------->8---

> Thanks very much for all your help so far.
>
> This is emacs 23.1.1 tramp 2.1.15 on ubuntu 9.10

I'll commit the patch to the repositories; will be available for you
with Emacs 23.2.

> Dan

Thanks for reporting, and best regards, Michael.


_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to