* Making Emacs Lisp Code TRAMP-compatible
@ 2009-10-08 15:18 Nordlöw
2009-10-08 20:32 ` Ted Zlatanov
0 siblings, 1 reply; 3+ messages in thread
From: Nordlöw @ 2009-10-08 15:18 UTC (permalink / raw)
To: help-gnu-emacs
If I want my Emacs-Lisp app to be compatible with TRAMP which
functions do I have to replace with TRAMP equivalents (tramp-
handle-...)?
All of them? Or is there a convenient way of replacing them all att
once inside a file-scope?
- directory-files() => tramp-handle-directory-files()
- file-directory-p() => tramp-handle-file-directory-p()
- ...
/Nordlöw
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Making Emacs Lisp Code TRAMP-compatible
2009-10-08 15:18 Making Emacs Lisp Code TRAMP-compatible Nordlöw
@ 2009-10-08 20:32 ` Ted Zlatanov
2009-10-09 7:54 ` Nordlöw
0 siblings, 1 reply; 3+ messages in thread
From: Ted Zlatanov @ 2009-10-08 20:32 UTC (permalink / raw)
To: help-gnu-emacs
On Thu, 8 Oct 2009 08:18:41 -0700 (PDT) Nordlöw <per.nordlow@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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Making Emacs Lisp Code TRAMP-compatible
2009-10-08 20:32 ` Ted Zlatanov
@ 2009-10-09 7:54 ` Nordlöw
0 siblings, 0 replies; 3+ messages in thread
From: Nordlöw @ 2009-10-09 7:54 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-09 7:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-08 15:18 Making Emacs Lisp Code TRAMP-compatible Nordlöw
2009-10-08 20:32 ` Ted Zlatanov
2009-10-09 7:54 ` Nordlöw
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.