From: Carsten Dominik <carsten.dominik@gmail.com>
To: Thomas Fuchs <tfuchs13@googlemail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-capture: file to top level with prepend
Date: Sat, 16 Oct 2010 07:17:18 +0200 [thread overview]
Message-ID: <9B1DD909-1B19-4DD1-B3FF-C6FAFB1EAFBD@gmail.com> (raw)
In-Reply-To: <AANLkTikV__Zb3XXNw9x4V0QWfwU1Qzyx+G5QK2vdv59-@mail.gmail.com>
Applied, thanks.
- Carsten
On Oct 3, 2010, at 6:01 AM, Thomas Fuchs wrote:
> 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.
>
> Regards
> Thomas
>
>
>
> <patch>_______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
prev parent reply other threads:[~2010-10-16 5:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-03 4:01 org-capture: file to top level with prepend Thomas Fuchs
2010-10-15 19:51 ` David Maus
2010-10-16 5:17 ` Carsten Dominik [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9B1DD909-1B19-4DD1-B3FF-C6FAFB1EAFBD@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=tfuchs13@googlemail.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.