[Top][All Lists]

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

Re: revert-buffer tragedy

From: ken
Subject: Re: revert-buffer tragedy
Date: Sat, 23 Apr 2005 03:23:35 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040831

Lowell Kirsh wrote:

> I just lost hours of work due to a combination of auto-revert-buffer
> and accidentally overwriting a file in my shell. I was working on
> foo.txt in an emacs buffer and accidentally overwrote it from a shell
> prompt while it was open in the buffer. When I went back to emacs, it
> reported that the buffer was reverted and when I tried to undo, it
> said no undo information was available. I've already checked in the
> ~/.backups folder but there is nothing useful there. Any ideas how I
> might be able to recover my work?
> Lowell

An autosave file has saved my keister a few times.  Look for a file in
the same directory with the same filename except wrapped with pound
signs (#).  Doing "ls -a \#*" should show it.  In emacs you could simply
visit the trashed file and do M-x recover-file and reply with the filename.

Good luck.


A lot of us are working harder than we want, at things we don't like to
do.  Why? ...In order to afford the sort of existence we don't care to live.
        -- Bradford Angier

reply via email to

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