From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: Org-capture templates target error in recent Org-mode source code update. Date: Thu, 29 Jun 2017 21:04:01 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1b440a0ab071055318f135" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQZ7c-00073s-Gf for emacs-orgmode@gnu.org; Thu, 29 Jun 2017 09:04:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQZ7b-0001n2-6a for emacs-orgmode@gnu.org; Thu, 29 Jun 2017 09:04:36 -0400 Received: from mail-wr0-x22f.google.com ([2a00:1450:400c:c0c::22f]:33751) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dQZ7a-0001kg-Vz for emacs-orgmode@gnu.org; Thu, 29 Jun 2017 09:04:35 -0400 Received: by mail-wr0-x22f.google.com with SMTP id r103so189316018wrb.0 for ; Thu, 29 Jun 2017 06:04:33 -0700 (PDT) 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: Org-mode --94eb2c1b440a0ab071055318f135 Content-Type: text/plain; charset="UTF-8" I got this error: #+BEGIN_EXAMPLE Debugger entered--Lisp error: (error "Invalid file location: nil") signal(error ("Invalid file location: nil")) error("Invalid file location: %S" nil) org-capture-expand-file((concat org-directory "/Contacts/Contacts.org")) org-capture-target-buffer((concat org-directory "/Contacts/Contacts.org")) org-capture-set-target-location() org-capture(nil) funcall-interactively(org-capture nil) call-interactively(org-capture nil nil) command-execute(org-capture) #+END_EXAMPLE I define org-capture template with this: #+BEGIN_SRC emacs-lisp (setq org-contacts-files '("~/Org/Contacts/Contacts.org")) (setq org-capture-templates (append '(("C" "[C]ontact" entry (file (car org-contacts-files)) "** %^{NAME} :PROPERTIES: :NICK: %^{Nick} :AVATAR: %^{Avatar} :END:" :empty-lines 1 :jump-to-captured t ) ) org-capture-templates)) #+END_SRC I'm using Org-mode source code "master" branch. and update to latest. (current latest commit: - 379a22c9c * master upstream/master Revert "ox-texinfo: Move menu handling from sections to headlines") My org-capture template works before, but now it does not work. Seems currently source code does not support "sexp" ~(file (car org-contacts-files))~ which returns a path to file. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ --94eb2c1b440a0ab071055318f135 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I got this error:
#+BEGIN_EXAMPLE
Debugger entered--Lisp error: (error "Invalid file location: nil"=
)
  signal(error ("Invalid file location: nil"))
  error("Invalid file location: %S" nil)
  org-capture-expand-file((concat org-directory "/Contacts/Contacts.or=
g"))
  org-capture-target-buffer((concat org-directory "/Contacts/Contacts.=
org"))
  org-capture-set-target-location()
  org-capture(nil)
  funcall-interactively(org-capture nil)
  call-interactively(org-capture nil nil)
  command-execute(org-capture)
#+END_EXAMPLE
I define org-capture template with this:
#+BEGIN_SRC emacs-lisp
(setq org-contacts-files '("~/Org/Contacts/Contacts.org"))

(setq org-capture-templates
      (append '(("C" "[C]ontact"
                 entry (file (car org-contacts-files))
                 "** %^{NAME}
:PROPERTIES:
:NICK: %^{Nick}
:AVATAR: %^{Avatar}
:END:"
                 :empty-lines 1
                 :jump-to-captured t
                 )
                )
              org-capture-templates))
#+END_SRC
I'm using Org-mode source code "master" branch. and update to= latest. (current latest commit:=20 - 379a22c9c * master upstream/master Revert "ox-texinfo: Move menu ha= ndling from sections to headlines") My org-capture template works before, but now it does not work. Seems curre= ntly source code does not support "sexp" ~(file (car org-contacts-file= s))~ which returns a path to file.


[= stardiviner]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 &l= t;Hack this world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C32433IRC(freeenode): stardiviner =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 Twitt= er:=C2=A0 @numbchild
Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 = CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/
<= /div>
--94eb2c1b440a0ab071055318f135--