unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Subject: Invoke Ange-FTP from within Tramp
Date: Sat, 22 Jun 2002 18:37:06 +0200	[thread overview]
Message-ID: <vafhejvqngt.fsf@INBOX.auto.emacs.devel.tok.lucy.cs.uni-dortmund.de> (raw)

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	other threads:[~2002-06-22 16:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-22 16:37 Kai Großjohann [this message]
2002-06-22 21:58 ` Invoke Ange-FTP from within Tramp Kim F. Storm
2002-06-23 18:12   ` Richard Stallman
2002-06-23 18:12 ` Richard Stallman
2002-06-24 15:52   ` Kai Großjohann
2002-06-25 11:07     ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vafhejvqngt.fsf@INBOX.auto.emacs.devel.tok.lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@cs.uni-dortmund.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).