tramp-devel
[Top][All Lists]
Advanced

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

Re: retrieving output from temp file


From: Michael Albinus
Subject: Re: retrieving output from temp file
Date: Sun, 28 Feb 2010 12:13:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.93 (gnu/linux)

Dan Davison <address@hidden> 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.




reply via email to

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