From mboxrd@z Thu Jan 1 00:00:00 1970 From: Haider Rizvi Subject: Bug: org-capture-templates issues Date: Wed, 04 Oct 2017 12:12:13 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzp5t-0005PG-UX for emacs-orgmode@gnu.org; Wed, 04 Oct 2017 15:12:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzp5o-0002In-GP for emacs-orgmode@gnu.org; Wed, 04 Oct 2017 15:12:33 -0400 Received: from [195.159.176.226] (port=39697 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzp5o-0002Ha-9f for emacs-orgmode@gnu.org; Wed, 04 Oct 2017 15:12:28 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dzp5a-0008NH-RD for emacs-orgmode@gnu.org; Wed, 04 Oct 2017 21:12:14 +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: emacs-orgmode@gnu.org I'm getting the following error, when trying to do an org-capture. 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 "inbox-gtd.org")) org-capture-target-buffer((concat org-directory "inbox-gtd.org")) org-capture-set-target-location() org-capture(nil) My org-capture-templates is set as follows for ages: (setq org-capture-templates '(("t" "Todo" entry (file+headline (concat org-directory "inbox-gtd.org") "Tasks") "* TODO %?\n %i\n %a") )) org-directory: "/Users/hrizvi/Google Drive/MyDocs/org/" With a fully qualified file-name, it works fine: (setq org-capture-templates '(("t" "Todo" entry (file+headline "/Users/hrizvi/Google Drive/MyDocs/org/inbox-gtd.org" "Tasks") "* TODO %?\n %i\n %a") )) Reading up org-capture-expand-file, it seems org-directory is prepended automatically, but it used to work fine in the past. Flipping back to the older code for org-capture-expand-file works fine. So I'd say this is a bug! (emacs-version) "GNU Emacs 26.0.50 (build 1, x86_64-apple-darwin16.7.0, NS appkit-1504.83 Version 10.12.6 (Build 16G29)) of 2017-09-13" (org-version) "9.1.2" org is installed from melpa-stable. From packages info: org is an installed package. Status: Installed in ‘org-20171004/’, shadowing a built-in package (unsigned). Version: 20171004 Summary: Outline-based notes management and organizer Required by: elfeed-org-20170423.128 Other versions: 20171004 (org), 20171002 (gnu), builtin. -- Haider