emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Noorul Islam <noorul@noorul.com>
To: Marcel van der Boom <marcel@hsdev.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-capture adds newline(s) when it should not
Date: Mon, 25 Oct 2010 17:28:37 +0530	[thread overview]
Message-ID: <AANLkTin9f3xbLazG2XJYmQ8B58N_8zRqEbPFJvVLz1Ut@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikovKMcyp_x_SPr2CWxGAJ5m0ZxE0mY9Ojz7dB3@mail.gmail.com>

On Mon, Oct 25, 2010 at 4:48 PM, Noorul Islam <noorul@noorul.com> wrote:
> On Mon, Oct 25, 2010 at 4:21 PM, Marcel van der Boom <marcel@hsdev.com> wrote:
>> Hi all,
>>
>> I'm in the process of migrating from org-remember to org-capture.
>> Pretty easy going so far, but it seems org-capture adds newlines, which
>> I think it should not do.
>>
>> My (test) capture-template is:
>>
>> (("t" "Todo" entry
>>  (file "~/.outlet/GTD.org")
>>  "* TODO %?" :prepend t :empty-lines 0)
>>
>> with the intention of inserting the captured task on the
>> first line of the file ~/.outlet/GTD.org. What happens when I capture
>> an task is this:
>>
>> <beginning of file>
>>
>> * TODO Captured task
>>
>> <original first line of file here>
>> ....
>>
>> Both before and after the task is a newline. Also, when capturing and
>> cancelling the capture with C-c C-k the newlines remain whereas the
>> task is removed.
>>
>> I'm using the latest git version with emacs 24.0.50.1 on Ubuntu 10.10
>>
>> Am I doing something wrong or is this a bug?
>>
>
> I do not have Emacs 24 as of now.
>
> With the same template I am not able to re-create this on
>
> Org-mode version 7.01trans (release_7.01h.832.gf7094)
> GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12)
>  of 2010-01-30 on noorul
>

On emacs 24 I am able to re-create the problem Marcel reported.

Thanks and Regards
Noorul

  reply	other threads:[~2010-10-25 12:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-25 10:51 org-capture adds newline(s) when it should not Marcel van der Boom
2010-10-25 11:18 ` Noorul Islam
2010-10-25 11:58   ` Noorul Islam [this message]
2010-10-25 12:16     ` Carsten Dominik
2010-10-26  4:29       ` Noorul Islam
2010-10-26  4:35         ` Carsten Dominik
2010-10-26  5:04           ` Noorul Islam
2010-10-26  5:36             ` Noorul Islam
2010-10-26  7:38               ` Marcel van der Boom
2010-10-26  8:16           ` Marcel van der Boom
2010-10-26  8:24             ` Noorul Islam
2010-10-26  8:35               ` Marcel van der Boom
2010-10-26  8:39                 ` Noorul Islam

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=AANLkTin9f3xbLazG2XJYmQ8B58N_8zRqEbPFJvVLz1Ut@mail.gmail.com \
    --to=noorul@noorul.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=marcel@hsdev.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).