From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xi Shen Subject: org-capture-expand-file: Invalid file location: nil Date: Sat, 04 Nov 2017 11:23:51 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1142aaa250ecd1055d2675f9" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAwYX-000722-8e for Emacs-orgmode@gnu.org; Sat, 04 Nov 2017 07:24:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAwYW-0006cx-G5 for Emacs-orgmode@gnu.org; Sat, 04 Nov 2017 07:24:05 -0400 Received: from mail-lf0-x229.google.com ([2a00:1450:4010:c07::229]:44075) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eAwYW-0006aT-7e for Emacs-orgmode@gnu.org; Sat, 04 Nov 2017 07:24:04 -0400 Received: by mail-lf0-x229.google.com with SMTP id 75so5809237lfx.1 for ; Sat, 04 Nov 2017 04:24:03 -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: "emacs-orgmode@gnu.org" --001a1142aaa250ecd1055d2675f9 Content-Type: text/plain; charset="UTF-8" Hi, When I do C-c c, I got an error: org-capture-expand-file: Invalid file location: nil But (org-capture-expand-file "") returns the expected value. And the file does exist. But (org-capture-expand-file nil) raise an error. So I guess the function was given an erroneous value. My relevant settings are: (org-capture-templates (quote (("t" "Task" entry (file+headline nil "Tasks") "* TODO %? %^g") ("q" "Quick note" entry (file+datetree nil) "* [%<%H:%M>] %?")))) (setq org-default-notes-file (concat org-directory "/.notes")) I did not change my configurations for a long time. Maybe some of them are outdated? Thanks, David --001a1142aaa250ecd1055d2675f9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

When I do C-c c, I got an error:

org-capture-expand-file: Invalid file location: nil<= br>

But=C2=A0(org-capture-expand-file ""= ) returns the expected value. And the file does exist. But=C2=A0(org-captur= e-expand-file nil) raise an error. So I guess the function was given an err= oneous value.=C2=A0

My relevant settings are:

(org-capture-templates
=C2=A0 =C2=A0(qu= ote
=C2=A0 =C2=A0 (("t" "Task" entry
=C2=A0 =C2=A0 =C2=A0 (file+headline nil "Tasks")
=C2= =A0 =C2=A0 =C2=A0 "* TODO %? %^g")
=C2=A0 =C2=A0 =C2=A0= ("q" "Quick note" entry
=C2=A0 =C2=A0 =C2=A0 = (file+datetree nil)
=C2=A0 =C2=A0 =C2=A0 "* [%<%H:%M>]= %?"))))

(setq org-default-notes-file (= concat org-directory "/.notes"))

I d= id not change my configurations for a long time. Maybe some of them are out= dated?


Thanks,
David

--001a1142aaa250ecd1055d2675f9--