emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Russell Adams <RLAdams@AdamsInfoServ.Com>
To: emacs-orgmode@gnu.org
Subject: Re: Preventing (or mitigating) accidental deletion in org-mode
Date: Sun, 23 Aug 2009 13:39:41 -0500	[thread overview]
Message-ID: <20090823183941.GN30613@thinkpad.adamsinfoserv.com> (raw)
In-Reply-To: <87my5qsigb.fsf@gmx.de>

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 <mail@nickbell.org> writes:
> > It there any way I can confirm all deletions of significant amounts of
> > data?
> >
> > I've  tried wimpy-del.el <http://www.emacswiki.org/emacs/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

  reply	other threads:[~2009-08-23 18:39 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
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 [this message]
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=20090823183941.GN30613@thinkpad.adamsinfoserv.com \
    --to=rladams@adamsinfoserv.com \
    --cc=emacs-orgmode@gnu.org \
    /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).