From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: [partial solution] (was: org-capture-templates and tables: HOWTO)
Date: Mon, 28 Jul 2014 12:54:45 +0200 [thread overview]
Message-ID: <87d2cpiwi2.fsf@mat.ucm.es> (raw)
In-Reply-To: 87ha21ixnm.fsf@mat.ucm.es
[-- Attachment #1: Type: text/plain, Size: 1647 bytes --]
>> "Uwe" == Uwe Brauer <oub@mat.ucm.es> writes:
> Hello
> I am using org-capture-templates for a while but now I would like to
> have a table in the target file, best would be something like this
> | File | Description |
> |-----------+-----------------------------|
> | name&Link | the purpose of this file is |
> So I tried this entry (I don't know where to put the predicate prepend
> or table-line...._
> ("t" "Table" table-line (file+headline "~/README.org" "Static")
> "%?\nEntered on %U\n %i\n %A")
this
("t" "Table" table-line (file+headline "~/README.org" "Static")
"|%U|%A|%? Entered on %U %i|" :prepend t)
Does work
This
("T" "Table" table-line (file "~/README.org" "Static")
"|%U|%A|%? Entered on %U %i|" :table-line-pos "II-3")
Does not
Here is the bugtrace
,----
|
| Debugger entered--Lisp error: (error "Capture template `T': Invalid
| table line specification \"II-3\"")
| signal(error ("Capture template `T': Invalid table line specification
| \"II-3\"")) cerror("Capture template `%s': %s" "T" "Invalid table line
| specification \"II-3\"") apply(cerror "Capture template `%s': %s" ("T"
| "Invalid table line specification \"II-3\"")) error("Capture template
| `%s': %s" "T" "Invalid table line specification \"II-3\"")
| byte-code("..." [error buffer-base-buffer string-match "\\`CAPTURE-"
| buffer-name kill-buffer set-window-configuration org-capture-get
| :return-to-wconf "Capture template `%s': %s" :key] 4) org-capture(nil)
| call-interactively(org-capture)
`----
Uwe Brauer
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5556 bytes --]
prev parent reply other threads:[~2014-07-28 10:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-28 10:29 org-capture-templates and tables: HOWTO Uwe Brauer
2014-07-28 10:54 ` Uwe Brauer [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
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=87d2cpiwi2.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--cc=emacs-orgmode@gnu.org \
/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).