From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Subject: Re: Preventing (or mitigating) accidental deletion in org-mode Date: Sun, 23 Aug 2009 13:39:51 +0100 Message-ID: References: <4A9120DB.6030003@nickbell.org> <4A9135CC.1050709@nickbell.org> 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 1MfCMz-0001zg-Rb for emacs-orgmode@gnu.org; Sun, 23 Aug 2009 08:40:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfCMu-0001xe-SW for emacs-orgmode@gnu.org; Sun, 23 Aug 2009 08:40:25 -0400 Received: from [199.232.76.173] (port=36062 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfCMt-0001wx-Mq for emacs-orgmode@gnu.org; Sun, 23 Aug 2009 08:40:19 -0400 Received: from lo.gmane.org ([80.91.229.12]:46374) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MfCMt-0004jz-5E for emacs-orgmode@gnu.org; Sun, 23 Aug 2009 08:40:19 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1MfCMq-0008EJ-IU for emacs-orgmode@gnu.org; Sun, 23 Aug 2009 14:40:16 +0200 Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Aug 2009 14:40:16 +0200 Received: from sdl.web by sl392.st-edmunds.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Aug 2009 14:40:16 +0200 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 On 2009-08-23 13:27 +0100, Nick Bell wrote: > I'm trying to write a little function using before-save-hook to > compare the current buffer to the saved version and output the result > of diffstat, asking the user whether they want to go ahead with the > save or view the full diff. Or has someone done something like this > before? See diff-buffer-with-file. -- Emacs uptime: 5 days, 22 hours, 23 minutes, 6 seconds