From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Re: Preventing (or mitigating) accidental deletion in org-mode Date: Sun, 23 Aug 2009 13:39:41 -0500 Message-ID: <20090823183941.GN30613@thinkpad.adamsinfoserv.com> References: <4A9120DB.6030003@nickbell.org> <87my5qsigb.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfHyq-0003xr-GU for emacs-orgmode@gnu.org; Sun, 23 Aug 2009 14:39:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfHyo-0003xL-VB for emacs-orgmode@gnu.org; Sun, 23 Aug 2009 14:39:52 -0400 Received: from [199.232.76.173] (port=56191 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfHyo-0003xI-Me for emacs-orgmode@gnu.org; Sun, 23 Aug 2009 14:39:50 -0400 Received: from squirtle.drak.net ([72.52.144.201]:40260) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MfHyo-0003GF-7m for emacs-orgmode@gnu.org; Sun, 23 Aug 2009 14:39:50 -0400 Received: from 206.180.154.148.adsl.hal-pc.org ([206.180.154.148] helo=localhost) by squirtle.drak.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1MfHye-0001an-Eh for emacs-orgmode@gnu.org; Sun, 23 Aug 2009 13:39:41 -0500 Content-Disposition: inline In-Reply-To: <87my5qsigb.fsf@gmx.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org You're recreating what version control is for. I have my org-files setup in a Bazaar repo, and if any changes were made it auto-commits hourly via cron. I can also manually commit. Prior to committing, I can press C-x v = to see a diff of what has changes, and the Bazaar tools make it easy to step backward through the history to see changes. Version control is your backup and your protection against data loss. On Sun, Aug 23, 2009 at 04:39:16PM +0200, Sebastian Rose wrote: > Nick Bell writes: > > It there any way I can confirm all deletions of significant amounts of > > data? > > > > I've tried wimpy-del.el > > but, although it seems to work when called directly (e.g. M-x > > kill-region-wimpy) it doesn't intercept all other functions which > > might cause data deletion. > > Re-bind keys like C-w et al in org-mode-hook? > > > Untested: > > > (defun org/wimpy-kill-setup () > "Re-bind keys, that remove a significant amount of data." > (define-key org-mode-map [(control ?w)] 'kill-region-wimpy) > ;; ... > ) > > (add-hook 'org-mode-hook 'org-/wimpy-kill-setup) > > > > Sebastian > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3