tramp-devel
[Top][All Lists]
Advanced

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

Re: Help needed from XEmacs gurus (was: Invalid format character: ?m)


From: Pete Forman
Subject: Re: Help needed from XEmacs gurus (was: Invalid format character: ?m)
Date: Fri, 19 Jul 2002 10:12:36 +0100

At 2002-07-17 16:45 +0200, Kai =?iso-8859-15?q?Gro=DFjohann?= wrote:
Could you put that code in a file, byte-compile it, and then execute
the byte-compiled code?  I hope it's still the same then.

Yes, it is the same.

(load "f:/lisp/mytest.elc")
t
(my-list "scp" "alicia" "/tmp/teste")
((?m . "scp") (?h . "alicia") (?p . "/tmp/teste"))
(my-format "scp" "alicia" "/tmp/teste")
"/[scp/alicia]/tmp/teste"


Where mytest.el contains

(defun my-list (method host path)
  (list (cons ?m method)
        (cons ?h host)
        (cons ?p path)))

(defun my-format (method host path)
  (format-spec tramp-make-tramp-file-user-nil-format
               (list (cons ?m method)
                     (cons ?h host)
                     (cons ?p path))))


--
Pete Forman                -./\.-  Disclaimer: This post is originated
WesternGeco                  -./\.-   by myself and does not represent
address@hidden    -./\.-   opinion of Schlumberger, Baker
http://petef.port5.com           -./\.-   Hughes or their divisions.




reply via email to

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