From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Holst Subject: Re: [bug] in capture Date: Mon, 21 May 2018 22:23:22 +0200 Message-ID: <06c18ff7-f8d5-4b39-2701-dd816da594e7@gmx.de> References: <48ea87ad-0447-72ad-decc-aa4bcf6ec089@gmx.de> <87fu2rtly4.fsf@nicolasgoaziou.fr> <87o9heq9ns.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------BA08E87A676871299AA53A50" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKrL9-0002eV-9g for emacs-orgmode@gnu.org; Mon, 21 May 2018 16:23:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fKrL4-0000MZ-B2 for emacs-orgmode@gnu.org; Mon, 21 May 2018 16:23:31 -0400 Received: from mout.gmx.net ([212.227.17.21]:36265) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fKrL3-0000M5-Vw for emacs-orgmode@gnu.org; Mon, 21 May 2018 16:23:26 -0400 In-Reply-To: <87o9heq9ns.fsf@nicolasgoaziou.fr> Content-Language: de-DE List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------BA08E87A676871299AA53A50 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 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, > --------------BA08E87A676871299AA53A50 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

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,


--------------BA08E87A676871299AA53A50--