emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Scot Becker <scot.becker@gmail.com>
To: Scott Otterson <scotto@sharpleaf.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: feature request: C-k safety
Date: Tue, 1 Jun 2010 16:43:03 +0100	[thread overview]
Message-ID: <AANLkTinpvWTRbGaGv82KcRY3HIL8U3J-fp2qnRWhK2eT@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimg-tiyBvSNbGRzIGJfeAgxijD8Vx-9PFpC3kIc@mail.gmail.com>

Scott,

You asked:
> Feature request: add an option preventing tree deletion with C-k without
> user confirmation.  Actually, I'd like an option to prevent it period.
> If this option is already in there, then you're encouraged to tell me to
> RTFM.  But then also please tell me where it is, because I can't find it.

In the FAQ, you can find this:

(setq org-special-ctrl-k t) before losing your work.

It's a clever compromise, though I suspect it doesn't give as much
protection as you want.

Here's what it does. From the docstring:

When t, the following will happen while the cursor is in the headline:

- When the cursor is at the beginning of a headline, kill the entire
  line and possible the folded subtree below the line.
- When in the middle of the headline text, kill the headline up to the tags.
- When after the headline text, kill the tags.

Scot

  reply	other threads:[~2010-06-01 15:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-01 14:51 feature request: C-k safety Scott Otterson
2010-06-01 15:43 ` Scot Becker [this message]
2010-06-02 22:19 ` Carsten Dominik
2010-06-03  6:24   ` Scott Otterson
2010-06-03 11:11   ` Juri Krivov

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=AANLkTinpvWTRbGaGv82KcRY3HIL8U3J-fp2qnRWhK2eT@mail.gmail.com \
    --to=scot.becker@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=scotto@sharpleaf.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).