[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] org-capture: file to top level with prepend
From: |
David Maus |
Subject: |
Re: [Orgmode] org-capture: file to top level with prepend |
Date: |
Fri, 15 Oct 2010 21:51:54 +0200 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.2 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
At Sun, 3 Oct 2010 06:01:38 +0200,
Thomas Fuchs wrote:
>
> [1 <multipart/alternative (7bit)>]
> [1.1 <text/plain; ISO-8859-1 (7bit)>]
> Hi!
>
> I'm trying to capture and file an entry as an top-level entry as first entry
>
> in an org file without config at the beginning (no "#+").
> This leads to filing the entry as _second_ headline in the org file.
>
> The template is:
> ("z" "test" entry (file "~/Data/z.org") "* %^{Note} %t :NOTE:\n %?"
> :prepend t)
>
> I think this is due to jumping over lines starting with "#+" at the
> beginning of the org file
> (line 715 in org-capture.el (org-capture-place-entry)).
> My file has no config header and starts with the first headline. Calling
> outline-next-heading
> in this situation leads to jumping to the second headline in the file.
>
> The appended patch fixes this problem by checking if we are on a headline
> and then skips jumping to next headline.
Just resending the patch: The patchtracker[1] didn't catch it because
it was attached as application/octet-stream.
Best,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... address@hidden
Email..... address@hidden
patch
Description: Text document
pgp3YX9KtuB7z.pgp
Description: PGP signature