emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andrew Stribblehill <ads@wompom.org>
To: Leo <sdl.web@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Preventing (or mitigating) accidental deletion in org-mode
Date: Sun, 23 Aug 2009 13:30:40 +0100	[thread overview]
Message-ID: <1f38ae890908230530u34e4aa4fi31b034174c1d17ae@mail.gmail.com> (raw)
In-Reply-To: <m04oryka79.fsf@cam.ac.uk>

2009/8/23 Leo <sdl.web@gmail.com>:
> On 2009-08-23 11:58 +0100, Nick Bell wrote:
>> 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 should not be a problem as long as you know how the undo in Emacs
> works. You can even use browse-kill-ring¹ to see what you have deleted in
> Emacs.

...Provided you know that you killed something you didn't intend to.
However, it's easy to kill a tree without noticing it had content.

Maybe we could augment org-kill-line with some optional facility that
checks that it doesn't encompass a collapsed section -- or less
intrusively, emits a message saying it's killed a collapsed section.
I'm having a hard time seeing how to code it though.

  reply	other threads:[~2009-08-23 12:30 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 [this message]
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
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=1f38ae890908230530u34e4aa4fi31b034174c1d17ae@mail.gmail.com \
    --to=ads@wompom.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=sdl.web@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).