emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [bug] in capture


From: Thomas Holst
Subject: Re: [O] [bug] in capture
Date: Mon, 21 May 2018 22:23:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

Hello Nicolas,

thank you for fixing this. I can confirm that my capture template is working again.

--
  Thomas


Am 17.05.2018 um 23:01 schrieb Nicolas Goaziou:
Hello,

Thomas Holst <address@hidden> writes:

Hi Nicolas,

thank you for looking into this.

To reproduce the error I have to use file+function target. There is no 
error if I use file+headline target.

Here is an ECM:

#+begin_src org
* Setup

#+begin_src emacs-lisp
  (setq org-capture-template nil)

  (setq
  org-capture-templates
  '(("x" "Testing" table-line (file+function 
"~/tmp/capture-bug/ecm.org" th:test-capture)
  "| | | %^{Arzt/Apotheke} |"
  :table-line-pos "III-1" :immediate-finish t)))

  (defun th:test-capture ()
  "Sets point to headline"
  (interactive)
  (goto-char (point-min))
  (org-speed-move-safe (quote org-next-visible-heading)))
#+end_src

* testing capture
|---+-----------------+------|
| ! | Datum           | Arzt |
|---+-----------------+------|
|   |                 |      |
|---+-----------------+------|
| # |                 |      |
|---+-----------------+------|
#+end_src

The function "th:test-capture" sets point to beginning of headline 
"testing capture".

I experimented with several point positions (end of the headline, line 
below headline). But none worked. The error stayed the same.

And here is the backtrace:
Debugger entered--Lisp error: (error "Capture template ‘hr’: 
integer-or-marker-p")
Fixed. Thank you.

Regards,



reply via email to

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