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

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

Quitting `save-buffer' loses backup file


From: Sven Joachim
Subject: Quitting `save-buffer' loses backup file
Date: Sun, 20 Nov 2005 11:09:06 +0100
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051017)

If saving a buffer with the current or preferred coding system is not
possible, Emacs displays a `*Warning*' buffer which tells to select a
safe coding system or to edit the buffer.  If you quit then, you will
lose the backup file for the buffer.  Take the following steps to
reproduce the problem:

$ echo "foo" > bar ; cp bar bar~
$ emacs -Q -f view-hello-file bar

In Emacs, in the "bar" buffer, type

M-x insert-buffer RET
C-x C-s

Emacs should display a '*Warning*' buffer now; type C-g to quit.
Now `buffer-backed-up' is t, but the backup file bar~ is gone. :-(

The problem seems to be long outstanding, I could also reproduce it
with Emacs 21.4.

In GNU Emacs 22.0.50.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2005-11-19 on debian, modified by Debian
X server distributor `The X.Org Foundation', version 11.0.60802000






reply via email to

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