* Problem (bug?) with capture
@ 2018-08-30 9:49 Thomas Holst
0 siblings, 0 replies; only message in thread
From: Thomas Holst @ 2018-08-30 9:49 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-08-30 9:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-30 9:49 Problem (bug?) with capture Thomas Holst
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.