all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
Cc: "'Bug-Gnu-Emacs \(E-mail\)" <bug-gnu-emacs@gnu.org>
Subject: Re: Delete Auto Save Files doesn't always work
Date: Fri, 01 Apr 2005 00:02:53 +0200	[thread overview]
Message-ID: <877jjno4mq.fsf@gmx.de> (raw)
In-Reply-To: <7D10EFE37E7CBF4288CAFDFAD3C7932C3466E9@msgswbmnmsp04.wellsfargo.com> (Richard G. Bielawski's message of "Mon, 28 Mar 2005 15:16:54 -0800")

"Bielawski, Richard G." <Richard.G.Bielawski@wellsfargo.com> writes:

Hi,

>> What is your value of `ange-ftp-auto-save' (I guess 0)? Does it help
>> to change it to 1?
>> 
> You are correct.  It was 0.  If I change to 1 it will only delete 
> the backup file if auto-save happens first.  IOW if the auto-save 
> file exists and I make a change to my file (without recovering) and 
> save the change before an auto-save happens then the obsolete 
> auto-save file is not purged.  If I wait for an auto-save before 
> saving manually then the auto-save file is cleaned up.
>
>> But if my guess is right, you shouldn't have an autosave file 
>> at all...

Finally, I believe it is a side-effect of Tramp. Could you try the
following patch on tramp.el (based on Tramp 2.0.48 source)? It should
fix both problems:

diff -u -r2.359.2.31 tramp.el
--- tramp.el    27 Feb 2005 14:28:50 -0000      2.359.2.31
+++ tramp.el    31 Mar 2005 21:53:55 -0000
@@ -4834,6 +4834,7 @@
 (defun tramp-set-auto-save ()
   (when (and (buffer-file-name)
              (tramp-tramp-file-p (buffer-file-name))
+            (not (tramp-ftp-file-name-p (buffer-file-name)))
              auto-save-default)
     (auto-save-mode 1)))
 (add-hook 'find-file-hooks 'tramp-set-auto-save t)

> Now that you point it out ... this is true.  But I think that having
> auto-save ON by default is quite a good thing.

I don't think so. It could be a security threat, because auto-saved
files go to the local host by default. Imagine you edit a remote file
as root, which is accessible locally under your user account...

Best regards, Michael.

  reply	other threads:[~2005-03-31 22:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-28 23:16 Delete Auto Save Files doesn't always work Bielawski, Richard G.
2005-03-31 22:02 ` Michael Albinus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-04-02  0:53 Bielawski, Richard G.
2005-04-03 16:54 ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877jjno4mq.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.