help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Making Emacs Lisp Code TRAMP-compatible


From: Nordlöw
Subject: Re: Making Emacs Lisp Code TRAMP-compatible
Date: Fri, 9 Oct 2009 00:54:24 -0700 (PDT)
User-agent: G2/1.0

On Oct 8, 10:32 pm, Ted Zlatanov <t...@lifelogs.com> wrote:
> On Thu, 8 Oct 2009 08:18:41 -0700 (PDT) Nordlöw <per.nord...@gmail.com> wrote:
>
> N> If I want my Emacs-Lisp app to be compatible with TRAMP which
> N> functions do I have to replace with TRAMP equivalents (tramp-
> N> handle-...)?
>
> N> All of them? Or is there a convenient way of replacing them all att
> N> once inside a file-scope?
>
> N> - directory-files() => tramp-handle-directory-files()
> N> - file-directory-p() => tramp-handle-file-directory-p()
> N> - ...
>
> Those are already calling Tramp functions when the filename matches the
> right pattern.  In other words, as an example:
>
> /test => Emacs handler => local handler (non-Tramp)
>
> /ftp:...Tramp file... => Emacs handler => Tramp FTP handler
>
> So your application shouldn't have to do anything.
>
> Ted

Great!

/Nordlöw


reply via email to

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