emacs-devel
[Top][All Lists]
Advanced

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

Invoke Ange-FTP from within Tramp


From: Kai Großjohann
Subject: Invoke Ange-FTP from within Tramp
Date: Sat, 22 Jun 2002 18:37:06 +0200
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.3.50 (i686-pc-linux-gnu)

How to implement this feature?

My current idea is as follows:

* Create a function which, given an operation, a list of arguments,
  and a list of indices, invokes Ange-FTP.  (Call it tramp-run-ange-ftp.)

  The list of indices specifies where in the arg list you can find
  Ange-FTP filenames.  These arguments are then rewritten from Tramp
  format to Ange-FTP format.  Then ange-ftp-hook-function is invoked
  with the operation and those arguments.

* Change all tramp-handle-foo functions (foo are names of operations)
  to check whether Ange-FTP should be invoked, and have them signal
  `tramp-run-ange-ftp' with the list of indices (where to find
  filenames in the arg list) as argument.

* Change tramp-file-name-handler (the function mentioned in
  file-name-handler-alist) so that it catches the tramp-run-ange-ftp
  signal and invokes the tramp-run-ange-ftp function.

Other alternatives:

* Use throw/catch instead of signal/condition-case.  I have no idea
  which one to use.

* Put the invocation of Ange-FTP directly in the functions.  This
  means that all of the functions will get an additional conditional
  around it and the meat of the function is in the else part.

What do you think?  Is this the right way to do it?

kai
-- 
A large number of young women don't trust men with beards.  (BFBS Radio)



reply via email to

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