From: Christian Moe <mail@christianmoe.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: [BUG] Capture template table line specification
Date: Wed, 13 Apr 2016 14:52:09 +0200 [thread overview]
Message-ID: <m237qp658m.fsf@christianmoe.com> (raw)
In-Reply-To: <87ega9dczi.fsf@nicolasgoaziou.fr>
[-- Attachment #1: Type: text/plain, Size: 206 bytes --]
Hello,
Yes, apologies. Here's a fairly minimal example. In making it, I
discovered that capture works until I add the table-formula line. With
the formula, it fails as described below.
Yours,
Christian
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: capture-test.org --]
[-- Type: text/x-org, Size: 592 bytes --]
#+title: Capture test
#+begin_src emacs-lisp
(setq org-capture-templates
'(("x" "exercise" table-line
(file+headline "~/org/capture-test.org" "Exercise")
"| %u | %^{Laps} | %^{Time} | 0 |"
:table-line-pos "II-1")))
#+end_src
* Exercise
| Date | Laps | Time | Laptime |
|------------------+------+------+---------|
| [2016-04-09 Sat] | 2 | 67 | 33.5 |
| [2016-04-11 Mon] | 1 | 32 | 32 |
| [2016-04-13 Wed] | 2 | 65 | 32.5 |
|------------------+------+------+---------|
| | | | 0/0 |
#+TBLFM: $4=$3/$2
[-- Attachment #3: Type: text/plain, Size: 606 bytes --]
Nicolas Goaziou writes:
> Hello,
>
> Christian Moe <mail@christianmoe.com> writes:
>
>> Another odd problems after updating to Emacs 24.5 and Org
>> 8.3.4:
>>
>> I have a capture template that puts the captured info into a table line
>> before the second horizontal line of the table.
>>
>> Capture fails with this message:
>>
>> Capture template `x': Invalid table line specification "II-1"
>>
>> Far as I can tell from the manual, the specification is exactly right,
>> and it has always worked before.
>
> Could you share the template with an Org document to test it on?
>
> Thank you.
>
> Regards,
next prev parent reply other threads:[~2016-04-13 12:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-10 20:47 [BUG] Capture template table line specification Christian Moe
2016-04-13 10:22 ` Nicolas Goaziou
2016-04-13 12:52 ` Christian Moe [this message]
2016-04-13 21:50 ` Nicolas Goaziou
2016-04-14 8:32 ` Christian Moe
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=m237qp658m.fsf@christianmoe.com \
--to=mail@christianmoe.com \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/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).