emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Bell <mail@nickbell.org>
To: PT <spamfilteraccount@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Preventing (or mitigating) accidental deletion in	org-mode
Date: Sun, 23 Aug 2009 13:27:56 +0100	[thread overview]
Message-ID: <4A9135CC.1050709@nickbell.org> (raw)
In-Reply-To: <loom.20090823T141458-512@post.gmane.org>

PT wrote:
> Nick Bell <mail <at> nickbell.org> writes:
>> Org-mode is great and I'd like to commit to it. However, I'm held back
>> by the  apparent fragility of  data stored in org-files.  For example,
>> it's easy to delete entire folded  trees of data with just a couple of
>> keystrokes or a mouse click.
> This shouldn't be a big problem, because you have automatic
> backup of your org and other files, right?

Yes, I have, but I'd like something a bit better.

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?

I suppose one could do this with some kind of before-change- type 
function if feeling particularly paranoid.

-- 
Nick Bell

  reply	other threads:[~2009-08-23 12:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-23 10:58 Preventing (or mitigating) accidental deletion in org-mode Nick Bell
2009-08-23 12:04 ` Leo
2009-08-23 12:30   ` Andrew Stribblehill
2009-08-23 12:20 ` PT
2009-08-23 12:27   ` Nick Bell [this message]
2009-08-23 12:39     ` Leo
2009-08-23 12:59       ` Nick Bell
2009-08-23 14:39 ` Sebastian Rose
2009-08-23 18:39   ` Russell Adams
2009-08-23 18:45     ` Nick Bell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A9135CC.1050709@nickbell.org \
    --to=mail@nickbell.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=spamfilteraccount@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).