unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: kai.grossjohann@uni-duisburg.de (Kai Großjohann)
Subject: Re: I miss ange-ftp ($#@!Tramp)
Date: Wed, 27 Nov 2002 10:15:06 +0100	[thread overview]
Message-ID: <84ptsr2x2d.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: m18Gioc-000IeAC@localhost

"Robert J. Chassell" <bob@rattlesnake.com> 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)

  reply	other threads:[~2002-11-27  9:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-25 22:23 I miss ange-ftp ($#@!Tramp) Clay Jones
2002-11-26  7:34 ` Kai Großjohann
2002-11-26 12:50   ` Robert J. Chassell
2002-11-26 13:03   ` Robert J. Chassell
2002-11-26 16:16     ` Kai Großjohann
2002-11-26 16:44       ` Robert J. Chassell
2002-11-27  9:15         ` Kai Großjohann [this message]
2002-11-26 22:22   ` Michael Albinus
2002-11-27  7:35 ` 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=84ptsr2x2d.fsf@lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@uni-duisburg.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).