From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug] in capture Date: Thu, 17 May 2018 23:01:11 +0200 Message-ID: <87o9heq9ns.fsf@nicolasgoaziou.fr> References: <48ea87ad-0447-72ad-decc-aa4bcf6ec089@gmx.de> <87fu2rtly4.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJQ1Z-0004Ie-QL for emacs-orgmode@gnu.org; Thu, 17 May 2018 17:01:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJQ1V-0004h4-Vg for emacs-orgmode@gnu.org; Thu, 17 May 2018 17:01:21 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:42881) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fJQ1V-0004ep-Or for emacs-orgmode@gnu.org; Thu, 17 May 2018 17:01:17 -0400 In-Reply-To: (Thomas Holst's message of "Thu, 17 May 2018 19:17:34 +0200") 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: Thomas Holst Cc: emacs-orgmode@gnu.org 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=20 > 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=20 > "~/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=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |= Arzt | > |---+-----------------+------| > |=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | > |---+-----------------+------| > | # |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | > |---+-----------------+------| > #+end_src > > The function "th:test-capture" sets point to beginning of headline=20 > "testing capture". > > I experimented with several point positions (end of the headline, line=20 > below headline). But none worked. The error stayed the same. > > And here is the backtrace: > Debugger entered--Lisp error: (error "Capture template =E2=80=98hr=E2=80= =99:=20 > integer-or-marker-p") Fixed. Thank you. Regards, --=20 Nicolas Goaziou 0x80A93738