[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ange-ftp under tramp ignores ange-ftp-auto-save
From: |
Chris Moore |
Subject: |
Re: ange-ftp under tramp ignores ange-ftp-auto-save |
Date: |
Fri, 23 Apr 2004 00:42:14 +0200 |
Michael Albinus writes:
> I'm not sure that Tramp is involved. Tramp passes all commands to
> ange-ftp in case of an FTP method; and it doesn't touch ange-ftp
> variables in general.
>
> You can test it replacing Tramp by ange-ftp directly after Emacs
> start, evaluating the following code:
>
> (setq file-name-handler-alist
> '(("^/[^/:]*\\'" . ange-ftp-completion-hook-function)
> ("^/[^/:]*[^/:.]:" . ange-ftp-hook-function)
> ("\\`/:" . file-name-non-special)))
>
> If the same effect happens, it is rather an ange-ftp problem.
If I do that, then some other problem happens - I am prompted for:
"Password for address@hidden"
This is a problem I've reported to this list before, and is to do with
the value of auto-save-file-name-transforms not being quite right.
If you fix the value of auto-save-file-name-transforms and try again,
then the same effect no longer happens.
Before using your 'setq file-name-handler-alist',
buffer-auto-save-file-name's value in the README buffer is
"/tmp/address@hidden"
After using your 'setq file-name-handler-alist',
buffer-auto-save-file-name's value in the README buffer is nil.
Indeed, if I remove your setq for file-name-handler-alist and change
the value of tramp-auto-save-directory to be "/tmp/xyzzy", then
buffer-auto-save-file-name's value in the README buffer is
"/tmp/xyzzy/address@hidden" - indicating that
the value of tramp-auto-save-directory is being used, and that this
isn't just an ange-ftp problem.
> Furthermore, you can disable backup for ange-ftp (and more general,
> for Tramp) with the following code:
> (add-to-list 'backup-directory-alist
> (cons tramp-file-name-regexp nil))
I'm talking about auto-save files here, not backup files. Thanks
anyway though.
Chris.