emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Samuel Wales <samologist@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-capture and blank lines
Date: Fri, 3 Sep 2010 08:00:43 +0200	[thread overview]
Message-ID: <8DEE7E6B-DD11-41A0-9FE5-2CFD73EB33E3@gmail.com> (raw)
In-Reply-To: <AANLkTik3_0JW3XOJabw2mUWsUJmOBX_0FQ1apzkY22PK@mail.gmail.com>


On Sep 3, 2010, at 5:48 AM, Samuel Wales wrote:

> Hi Carsten,
>
> Thanks for org-capture.  It is superb.
>
> I think I have only been able to find one suggestion for it.
> Currently, cancelling leaves a blank line.  Maybe there is a way to
> fix that?  Do I need to provide details?


Hi Samuel,

this is not easy to fix.  I need to insert one empty line to
make sure that the user does not by accident remove the final newline
and in this way deactivate the following headline.

Then, at kill time, when I am cleaning up, it is hard to tell if there
was an empty line originally....

So the current procedure is safer and I will keep it like this.

>
> It is also tempting to make (kill-buffer nil) ask you if you want to
> cancel the capture.

How do you call (kill-buffer nil) ?

If you have a special key for this, you can bind it in
org-capture-mode-map to org-capture-kill.  If you are using the  
interactive
version of `kill-buffer', I don't think it is a good idea to change  
this because
users will expect the buffer name prompt at that point.

- Carsten

  reply	other threads:[~2010-09-03  6:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-03  3:48 org-capture and blank lines Samuel Wales
2010-09-03  6:00 ` Carsten Dominik [this message]
2010-09-03  6:56   ` Samuel Wales
2010-09-03  7:19     ` Carsten Dominik

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=8DEE7E6B-DD11-41A0-9FE5-2CFD73EB33E3@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=samologist@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).