emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Xi Shen <davidshen84@gmail.com>
To: "emacs-orgmode@gnu.org" <Emacs-orgmode@gnu.org>
Subject: org-capture-expand-file: Invalid file location: nil
Date: Sat, 04 Nov 2017 11:23:51 +0000	[thread overview]
Message-ID: <CANO68EPK_-Z1LPn-dKC6Pmvsi0JOC04TW_Uoc6oy+Cv-4trbGQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 672 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1133 bytes --]

             reply	other threads:[~2017-11-04 11:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-04 11:23 Xi Shen [this message]
2017-11-04 21:23 ` org-capture-expand-file: Invalid file location: nil Nicolas Goaziou
2017-11-05  2:27   ` Xi Shen

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CANO68EPK_-Z1LPn-dKC6Pmvsi0JOC04TW_Uoc6oy+Cv-4trbGQ@mail.gmail.com \
    --to=davidshen84@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).