[Top][All Lists]

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

Re: Multiple ftp clients using ange-ftp?

From: Kevin Rodgers
Subject: Re: Multiple ftp clients using ange-ftp?
Date: Mon, 01 Dec 2003 14:18:12 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Andrew Koenig wrote:

I use ange-ftp to access files on a variety of machines.  I would like to be
able to use /usr/bin/ftp for some machines and /usr/bin/sftp for others.

Is there a straightforward way to tell ange-ftp to use different ftp clients
for different buffers?

Does this work?

(defadvice ange-ftp-start-process (before ange-ftp-ftp-program-name activate)
  "Set `ange-ftp-ftp-program-name' depending on HOST."
  (cond ((member (ad-get-arg 0) '("somehost-1" "somehost-2"))
         (set (make-local-variable 'ange-ftp-ftp-program-name)
        ((member (ad-get-arg 0) '("otherhost-1" "otherhost-2"))
         (set (make-local-variable 'ange-ftp-ftp-program-name)

Kevin Rodgers

reply via email to

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