From: Aankhen <aankhen@gmail.com>
To: Thomas Holst <thomas.holst@de.bosch.com>,
"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Problems with capture in tables
Date: Thu, 5 May 2011 13:15:41 +0530 [thread overview]
Message-ID: <BANLkTimPFyXPgps1bNiNFV8sE=JQtBc1hA@mail.gmail.com> (raw)
In-Reply-To: <o.ywodtydblyfj@de.bosch.com>
Hi,
On Wed, May 4, 2011 at 12:55, Thomas Holst <thomas.holst@de.bosch.com> wrote:
> I am trying to put a line into a table via org capture.
>
> My org file looks like this:
> [snip]
>
> My capture template looks like this:
> #+begin_src emacs-lisp
> (setq org-capture-templates
> '(("x" "Testing" table-line
> (file+headline "c:/temp/TestCaptTbl.org" "Heading 1")
> "| # | %t | %^{weight} | |" :table-line-pos II-1)))
> #+end_src
>
> When I invoke capture I get the following error (backtrace):
>
> [snip]
>
> Now if I leave `:table-line-pos II-1' out of the template it works fine
> but the line is appended at the end. That's obviously not what I want.
>
> [snip]
As far as I can tell, the value of ‘:table-line-pos’ is supposed to be
a string. This seems to work for me:
,----
| (setq org-capture-templates
| '(("x" "Testing" table-line
| (file+headline "Z:/temp/TestCaptTbl.org" "Heading 1")
| "| # | %t | %^{weight} | |" :table-line-pos "II-1")))
`----
Hope this helps.
Aankhen
next prev parent reply other threads:[~2011-05-05 7:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-04 7:25 Problems with capture in tables Thomas Holst
2011-05-05 7:45 ` Aankhen [this message]
2011-05-05 8:09 ` Thomas Holst
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='BANLkTimPFyXPgps1bNiNFV8sE=JQtBc1hA@mail.gmail.com' \
--to=aankhen@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=thomas.holst@de.bosch.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.