From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: revert-buffer tragedy Date: Sat, 23 Apr 2005 03:23:35 -0400 Message-ID: <4269F7F7.8020406@speakeasy.net> References: Reply-To: gebser@speakeasy.net NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1114241002 7260 80.91.229.2 (23 Apr 2005 07:23:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 23 Apr 2005 07:23:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 23 09:23:19 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DPEyp-00072c-Bm for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Apr 2005 09:23:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DPF3t-0001z4-RA for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Apr 2005 03:28:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DPF3Z-0001yg-Ru for help-gnu-emacs@gnu.org; Sat, 23 Apr 2005 03:28:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DPF3Y-0001xr-8i for help-gnu-emacs@gnu.org; Sat, 23 Apr 2005 03:28:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DPF3Y-0001rT-3M for help-gnu-emacs@gnu.org; Sat, 23 Apr 2005 03:28:00 -0400 Original-Received: from [69.17.117.25] (helo=mail23.sea5.speakeasy.net) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DPF2b-0005KW-Cs for help-gnu-emacs@gnu.org; Sat, 23 Apr 2005 03:27:01 -0400 Original-Received: (qmail 8275 invoked from network); 23 Apr 2005 07:24:08 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO [192.168.0.100]) (cousin@[66.93.11.17]) (envelope-sender ) by mail23.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 23 Apr 2005 07:24:08 -0000 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040831 X-Accept-Language: en-us, en, de, ru, fr-fr Original-To: Lowell Kirsh , GNU Emacs List In-Reply-To: X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25984 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25984 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. hth, ken -- 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