[Top][All Lists]

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

Re: address@hidden: file-remote-p malfunctions at site-start (file-name-

From: Michael Albinus
Subject: Re: address@hidden: file-remote-p malfunctions at site-start (file-name-handler-alist init)]
Date: Mon, 26 Mar 2007 16:44:16 +0200
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux)

Chong Yidong <address@hidden> writes:

>> It was there initially. Then it was changed, because people didn't
>> want to get Tramp enabled mandatory for file name completion. Now the
>> registration is done only in case `partial-completion-mode' is
>> active, which must be checked.
> In that case, I suggest documenting this in PROBLEMS: if you want to
> use Tramp in your site-start file, run tramp-register-file-name-handlers
> first (and remove it from after-init-hook).

I haven't a better idea. Maybe one should argue that it isn't a good
idea to access remote files in site-init files.

Note that removing tramp-register-file-name-handlers from
after-init-hook is not necessary, the registration is re-entrant.

OTOH, the OP gave as practical example recentf-mode problems with
remote files (handled in site-init). It would require changes in
recentf at least.

Best regards, Michael.

reply via email to

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