emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Problem (bug?) with capture


From: Thomas Holst
Subject: [O] Problem (bug?) with capture
Date: Thu, 30 Aug 2018 11:49:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (windows-nt)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]