emacs-pretest-bug
[Top][All Lists]
Advanced

[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, 18 Apr 2004 21:02:23 +0200
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Chris Moore <address@hidden> writes:

> I replace my .emacs with these 2 lines:
>
>   (setq tramp-auto-save-directory "/tmp"
>         ange-ftp-auto-save 0)
>
> and then run Emacs like this:
>
>   emacs /address@hidden:/README
>
> tramp uses ange-ftp to vist the remote file.  ange-ftp-auto-save
> specifies that I don't want any auto-saving to happen, but
> buffer-auto-save-file-name's value is
> "/tmp/address@hidden", and auto-saving *does*
> happen.

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.

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

This is described in the Tramp manual.

> Chris.

Best regards, Michael.




reply via email to

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