From: Thomas Holst <thomas.holst@de.bosch.com>
To: emacs-orgmode@gnu.org
Subject: Problem (bug?) with capture
Date: Thu, 30 Aug 2018 11:49:28 +0200 [thread overview]
Message-ID: <ywoda7p4i3pz@FE-Z1AJG> (raw)
Hello,
recently I encountered a problem with capture. I have a template in
which =:table-line= is set to a variable not a string. This used to work
but now throws an error.
Here is an ECM:
* Table
| col1 | col2 | col3 |
|-------+------+------|
| entry | | |
|-------+------+------|
* Template and elisp code
#+BEGIN_SRC elisp
(setq th:line "II-1")
(setq org-capture-templates
'(("t" "Testing variable" table-line
(file+headline "~/git/scratch/org-table-test.org" "Table")
"| %?| | |" :table-line-pos th:line :immediate-finish t)))
#+END_SRC
Calling this template throws an error:
: condition-case: Capture template ‘t’: stringp
When I set :table-line-pos to "II-1" everything works as expected. I
have a more complex template where an elisp function sets a variable for
the :table-line-pos. This worked up to some point in time but now stopped
working.
This is on:
(emacs-version)
"GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of
2018-07-02"
(org-version)
Org mode version 9.1.13 (release_9.1.13-900-g638f32 @
/home/thommy/git-emacs/org-mode/lisp/)
Thank you for looking into this.
--
Thomas
reply other threads:[~2018-08-30 9:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=ywoda7p4i3pz@FE-Z1AJG \
--to=thomas.holst@de.bosch.com \
--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).