From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.help Subject: Re: revert-buffer tragedy Date: 23 Apr 2005 19:49:31 -0500 Organization: Auburn University Usenet Server Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1114305908 23884 80.91.229.2 (24 Apr 2005 01:25:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 24 Apr 2005 01:25:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 24 03:25:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DPVrn-0003ms-Tw for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Apr 2005 03:25:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DPVx1-0005uA-TI for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Apr 2005 21:30:23 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.ems.psu.edu!news.cse.psu.edu!news-ext.gatech.edu!aunews.duc.auburn.edu!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 17 Original-NNTP-Posting-Host: raven.dms.auburn.edu Original-X-Trace: aunews.duc.auburn.edu 1114303900 23611 131.204.53.29 (24 Apr 2005 00:51:40 GMT) Original-X-Complaints-To: abuse@auburn.edu Original-NNTP-Posting-Date: Sun, 24 Apr 2005 00:51:40 +0000 (UTC) X-Newsreader: Gnus v5.7/Emacs 20.7 Original-Xref: shelby.stanford.edu comp.emacs:88689 gnu.emacs.help:130428 Original-To: help-gnu-emacs@gnu.org 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:25999 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25999 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 do not know what shell you were using and how you accidentally overwrote your file from the shell. But if you were using bash and overwrote using output redirection, you could write: set -C in your .bashrc. That will only protect against accidental overwiting using output redirection (using `>', `>&', and `<>'), however. Sincerely, Luc.