[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: |
Michael Albinus |
Subject: |
Re: ange-ftp under tramp ignores ange-ftp-auto-save |
Date: |
Sun, 25 Apr 2004 18:55:07 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/20.7 (hpux) |
Chris Moore <address@hidden> writes:
> 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.
I've checked the Tramp code. And indeed, Tramp seems to be
responsible. It adds the function `tramp-set-auto-save´ to
`find-file-hooks´, independant of method being "ftp" or something
else.
Hmm. As workaround it seems to be sufficient to set
`auto-save-default´ to nil - but this would disable auto save in
general. Looks like there is a Tramp bug, indeed.
I copy this message to Kai, because I'm not familiar enough with
Tramp's auto-save mechanics. Maybe it is sufficient to clean up
`find-file-hooks´ locally when calling Ange-FTP, but I feel there must
be a more elegant solution.
> Chris.
Best regards, Michael.