It's possible that you'll only see
the second question ("Revert buffer from file . . .
"). This means that you have saved the file sometime
within the last 300 keystrokes. As soon as you save a file, Emacs
deletes the auto-save file. It will create a new one every 300
keystrokes.
It's worth noting that Emacs is
very picky about what you type. If it asks for a
y or an n,
you've got to type y or
n. If it asks for yes or
no, you've got to type
yes or no. In situations like
this, where the two styles are mixed up, you've got
to get it right.
If you're in real trouble and you want to go back to
your original file -- the way it was when you
started editing -- you need to recover Emacs'
backup file. If you're editing
a file that already exists, Emacs will create a backup file as soon
as it starts. If you're editing a new file, Emacs
will create a backup the second time you save
the file. Once it's created, the backup file is
never touched; it stays there until the next time you start Emacs, at
which point you'll get a new backup, reflecting the
file's contents at the start of your editing
session.
Now that we're over the preliminaries, how do you
recover the backup file? Emacs doesn't have any
special command for doing this; you have to do it by hand. The backup
file's name is the same as your original filename,
with a tilde (~) added to it. So quit Emacs (or
start a shell), and type:
% mv your-filename~ your-filename
Note that Emacs has the ability to save
"numbered" backup files, like the
VAX/VMS operating system. We've never played with
this feature and don't think it's a
particularly good idea. But it's there if you want
it.
--ML and DC
 |  |  |
19.3. Customizations and How to Avoid Them |  | 19.5. Putting Emacs in Overwrite Mode |