emacs-devel
[Top][All Lists]
Advanced

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

Re: Emacs unconditionally loads tramp.el


From: Michael Albinus
Subject: Re: Emacs unconditionally loads tramp.el
Date: Mon, 24 Apr 2006 21:48:12 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Richard Stallman <address@hidden> writes:

>     That's right. It is due to `tramp-register-file-name-handlers' in
>     `emacs-startup-hook', which is an autoloaded function. But Tramp would
>     be loaded anyway when one tries to complete a filename in the
>     minibuffer, because the intention of my change is to provide
>     method/username/hostname completion for remote files. "C-x C-f / <TAB>"
>     would be sufficient to load Tramp.
>
> We need to talk about this.  I don't want completion to load Tramp
> in common cases that don't really involve use of Tramp.

I see the point. Maybe it should be customizable somehow, whether the
hostname completion regexp is active.

OTOH, when ange-ftp was hooked into file-name-handler-alist, it was
exactly that behaviour. "C-x C-f / <TAB>" started hostname completion.
See respective (not active) code from ange-ftp:

;;-;;; 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)))

Best regards, Michael.




reply via email to

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