From: Haider Rizvi <harizvi@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: org-capture-templates issues
Date: Wed, 04 Oct 2017 12:12:13 -0700 [thread overview]
Message-ID: <whyigd162bucy.fsf@hrizvi-wsm4.internal.salesforce.com> (raw)
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
next reply other threads:[~2017-10-04 19:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-04 19:12 Haider Rizvi [this message]
2017-10-04 19:26 ` Bug: org-capture-templates issues Kaushal Modi
2017-10-04 19:34 ` Haider Rizvi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=whyigd162bucy.fsf@hrizvi-wsm4.internal.salesforce.com \
--to=harizvi@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.