From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: Re: I miss ange-ftp ($#@!Tramp) Date: Wed, 27 Nov 2002 10:15:06 +0100 Organization: University of Dortmund, Germany Sender: emacs-devel-admin@gnu.org Message-ID: <84ptsr2x2d.fsf@lucy.cs.uni-dortmund.de> References: <7AA5242A-00C4-11D7-9700-0003936772EE@clay-jones.com> <847kf0wzqm.fsf@lucy.cs.uni-dortmund.de> <844ra4cnmy.fsf@lucy.cs.uni-dortmund.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1038388641 29367 80.91.224.249 (27 Nov 2002 09:17:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 27 Nov 2002 09:17:21 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18GyJq-0007dJ-00 for ; Wed, 27 Nov 2002 10:17:18 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18GyQM-0003QB-00 for ; Wed, 27 Nov 2002 10:24:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18GyJL-0005gT-00; Wed, 27 Nov 2002 04:16:47 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18GyHm-00037m-00 for emacs-devel@gnu.org; Wed, 27 Nov 2002 04:15:10 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18GyHk-00037a-00 for emacs-devel@gnu.org; Wed, 27 Nov 2002 04:15:09 -0500 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18GyHj-00037W-00 for emacs-devel@gnu.org; Wed, 27 Nov 2002 04:15:07 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18GyFd-0007Fp-00 for ; Wed, 27 Nov 2002 10:12:57 +0100 Original-To: emacs-devel@gnu.org X-Injected-Via-Gmane: http://gmane.org/ Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18GyFd-0007Fg-00 for ; Wed, 27 Nov 2002 10:12:57 +0100 Original-Path: not-for-mail Original-Lines: 59 Original-NNTP-Posting-Host: lucy.informatik.uni-duisburg.de Original-X-Trace: main.gmane.org 1038388377 26101 134.91.35.216 (27 Nov 2002 09:12:57 GMT) Original-X-Complaints-To: usenet@main.gmane.org Original-NNTP-Posting-Date: Wed, 27 Nov 2002 09:12:57 +0000 (UTC) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:ka586WqcysOz7/u11XdqALlYP/Q= Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9705 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9705 "Robert J. Chassell" writes: > ;;; from emacs/lisp/net/ange-ftp.el > > ;;; This regexp takes care of real ange-ftp file names (with a slash > ;;; and colon). > ;;; Don't allow the host name to end in a period--some systems use /.: > ;;;###autoload > (or (assoc "^/[^/:]*[^/:.]:" file-name-handler-alist) > (setq file-name-handler-alist > (cons '("^/[^/:]*[^/:.]:" . ange-ftp-hook-function) > file-name-handler-alist))) > > ;;; This regexp recognizes absolute filenames with only one component, > ;;; for the sake of hostname completion. > ;;;###autoload > (or (assoc "^/[^/:]*\\'" file-name-handler-alist) > (setq file-name-handler-alist > (cons '("^/[^/:]*\\'" . ange-ftp-completion-hook-function) > file-name-handler-alist))) > > ;;; This regexp recognizes absolute filenames with only one component > ;;; on Windows, for the sake of hostname completion. > ;;; NB. Do not mark this as autoload, because it is very common to > ;;; do completions in the root directory of drives on Windows. > (and (memq system-type '(ms-dos windows-nt)) > (or (assoc "^[a-zA-Z]:/[^/:]*\\'" file-name-handler-alist) > (setq file-name-handler-alist > (cons '("^[a-zA-Z]:/[^/:]*\\'" . > ange-ftp-completion-hook-function) > file-name-handler-alist)))) This means that both Tramp and Ange-FTP are present in file-name-handler-alist, I think. (Type C-h v file-name-handler-alist RET to find out.) That's not good. Tramp has been changed to automatically invoke Ange-FTP when necessary. So I suggest to either use that facility (if it works), or to disable Tramp completely if you want to just use Ange-FTP without Tramp. I think the following code will disable Tramp: (setq file-name-handler-alist (delelete (assq 'tramp-completion-file-name-handler file-name-handler-alist) file-name-handler-alist)) (setq file-name-handler-alist (delelete (assq 'tramp-file-name-handler file-name-handler-alist) file-name-handler-alist)) I think I should go back to the first bug report where it says that Ange-FTP failed. -- ~/.signature is: umop ap!sdn (Frank Nobis)