emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Florian Lindner <mailinglists@xgm.de>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: bzg@gnu.org, emacs-orgmode@gnu.org
Subject: Re: Capture template stopped working: nil
Date: Fri, 30 Jun 2017 12:20:49 +0200	[thread overview]
Message-ID: <a16db0e0-bd34-d057-2ae5-d1b62bfe9512@xgm.de> (raw)
In-Reply-To: <4bb6a523-1252-e923-db46-b1077fe6238d@xgm.de>

Hey Nicolas, hey Bastien,

might you give a hint why

 ("j" "Journal" item
  (file+datetree "journal.org")
  "%?\n%i" :kill-buffer t)

which still gives the same error: org-capture: Capture template ‘j’: nil

Thanks a lot,
Florian

Am 25.06.2017 um 21:23 schrieb Florian Lindner:
> Am 25.06.2017 um 21:09 schrieb Nicolas Goaziou:
>> Hello,
>>
>> Florian Lindner <mailinglists@xgm.de> writes:
>>
>>
>>> since recently, one of my capture templates stopped working. Message is:
>>>
>>> Template key:
>>> org-capture: Capture template ‘j’: nil
>>>
>>> and:
>>>
>>> - %?
>>>
>>> is added to journal.org. I have also tried some other template text like "foo" (without any keys), but the message is the same.
>>>
>>> value of org-capture-templates is:
>>
>>>  ("j" "Journal" item
>>>   (file+datetree
>>>    (concat org-directory "/journal.org"))
>>
>> It should be (lambda () (concat org-directory "/journal.org")).
>>
>> See ORG-NEWS.
> 
> Hey,
> 
> ok, found it there.
> 
> However, it seems that I don't need it anyways, since "When an absolute path is not specified for a target, it is taken as relative to ‘org-directory’."
> 
> So, I changed it to:
> 
>  ("j" "Journal" item
>   (file+datetree "journal.org")
>   "%?\n%i" :kill-buffer t)
> 
> which still gives the same error.
> 
> Sorry... what is still wrong there?
> 
> Best,
> Florian
> 

  reply	other threads:[~2017-06-30 10:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-25 19:04 Capture template stopped working: nil Florian Lindner
2017-06-25 19:09 ` Nicolas Goaziou
2017-06-25 19:23   ` Florian Lindner
2017-06-30 10:20     ` Florian Lindner [this message]
2017-06-30 11:13       ` Alan Schmitt
2017-06-30 12:39       ` Nicolas Goaziou
2017-06-25 19:44   ` Bastien
2017-06-25 20:24     ` Nicolas Goaziou
2017-06-25 21:25       ` Bastien Guerry
2017-06-25 21:38         ` Nicolas Goaziou
2017-06-30 12:23           ` Bastien
2017-07-01  9:03             ` Nicolas Goaziou

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=a16db0e0-bd34-d057-2ae5-d1b62bfe9512@xgm.de \
    --to=mailinglists@xgm.de \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /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).