[Top][All Lists]

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

Re: Quitting `save-buffer' loses backup file

From: Richard M. Stallman
Subject: Re: Quitting `save-buffer' loses backup file
Date: Thu, 29 Dec 2005 21:18:18 -0500

    Humm.  This does not look quite right either.  In which directory did you
    try this?

In my home directory.

I am not convinced this is a wrong outcome for quitting in the middle
of saving.

    Here is a summary of what Emacs does in the scenario:

    (a) Before saving bar, Emacs renames bar to bar~, overwriting the old
         backup in the process, and sets `buffer-backed-up' to t.  This is
         documented in the manual.

    (b) Emacs tries to save bar but fails to do so, because the user quits.
         To reduce harm, Emacs renames bar~ back to bar.  But -- and this is
         probably wrong -- Emacs does not set `buffer-backed-up' back to nil.

What I get is (a) but not (b).

reply via email to

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