Re: [Orgmode] Preventing (or mitigating) accidental deletion in org-mode

2009-08-23 Thread Nick Bell

Russell Adams wrote:

You're recreating what version control is for.


I don't need all the functionality of version control, just a check 
against the last saved version to make sure I haven't inadvertently 
deleted too much.


I've used Hg and bzr in the past and they work fine but I don't think I 
need them for this.



Version control is your backup and your protection against data loss.


It's *a* form of backup. Another might be more appropriate.

Thanks for the input

Nick


___
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


Re: [Orgmode] Preventing (or mitigating) accidental deletion in org-mode

2009-08-23 Thread Russell Adams
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 Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


___
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


Re: [Orgmode] Preventing (or mitigating) accidental deletion in org-mode

2009-08-23 Thread Sebastian Rose
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


[Orgmode] Preventing (or mitigating) accidental deletion in org-mode

2009-08-23 Thread Nick Bell

Dear List,

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.

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.

I'd appreciate people's thoughts

Nick

--
Nick Bell


___
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