From: Thomas Holst <thomas_holst@gmx.de>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: [bug] in capture
Date: Mon, 21 May 2018 22:23:22 +0200 [thread overview]
Message-ID: <06c18ff7-f8d5-4b39-2701-dd816da594e7@gmx.de> (raw)
In-Reply-To: <87o9heq9ns.fsf@nicolasgoaziou.fr>
[-- Attachment #1: Type: text/plain, Size: 1663 bytes --]
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 <thomas_holst@gmx.de> 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,
>
[-- Attachment #2: Type: text/html, Size: 2244 bytes --]
prev parent reply other threads:[~2018-05-21 20:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-15 17:26 [bug] in capture Thomas Holst
2018-05-16 19:55 ` Nicolas Goaziou
2018-05-17 17:17 ` Thomas Holst
2018-05-17 21:01 ` Nicolas Goaziou
2018-05-21 20:23 ` Thomas Holst [this message]
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=06c18ff7-f8d5-4b39-2701-dd816da594e7@gmx.de \
--to=thomas_holst@gmx.de \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/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).