[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [bug] in capture
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [bug] in capture |
Date: |
Thu, 17 May 2018 23:01:11 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
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,
--
Nicolas Goaziou 0x80A93738