emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Samuel W. Flint" <swflint@flintfam.org>
Cc: Org-Mode <emacs-orgmode@gnu.org>
Subject: Re: Org Protocol error, does not recognize template
Date: Wed, 14 Jun 2017 18:31:10 +0200	[thread overview]
Message-ID: <87lgouil9t.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <C846B424-0DD7-4021-BA0C-68A4EDD67BD8@flintfam.org> (Samuel W. Flint's message of "Wed, 14 Jun 2017 11:02:35 -0500")

"Samuel W. Flint" <swflint@flintfam.org> writes:

> That format is documented in the docstring for org-capture-templates.

Correct! I suppose I should read docstrings from time to time.

> That's the most precise recipe I have. For some reason that specific
> template cannot be found.

I put

(setq org-capture-templates
      `(("a" "Create Appointment" entry
         (file+olp "~/org/agenda.org" "Main Agenda, including diary" "Current")
         (file "~/.emacs.d/org-capture-templates/appointment-template.org")
         :empty-lines 1 :prepend nil)
        ("t" "TODO Items")
        ("tt" "Standard TODO" entry
         (file+headline "~/org/main.org" "To Do")
         (file "~/.emacs.d/org-capture-templates/todo-template.org")
         :empty-lines 1)
        ("td" "Deadline TODO" entry
         (file+headline "~/org/main.org" "To Do")
         (file "~/.emacs.d/org-capture-templates/todo-deadline-template.org")
         :empty-lines 1)
        ("tl" "Linked TODO" entry
         (file+headline "~/org/main.org" "To Do")
         (file "~/.emacs.d/org-capture-templates/todo-link-template.org")
         :empty-lines 1)
        ("n" "Notes")
        ("nn" "General Notes" entry
         (file+datetree ,(format-time-string "~/org/notes/%Y.org"))
         (file "~/.emacs.d/org-capture-templates/notes-journal-template.org")
         :empty-lines 1)
        ("nl" "Linked Note" entry
         (file+datetree ,(format-time-string "~/org/notes/%Y.org"))
         (file "~/.emacs.d/org-capture-templates/linked-note-journal-template.org")
         :empty-lines 1)
        ("nq" "Quoting Note" entry
         (file+datetree ,(format-time-string "~/org/notes/%Y.org"))
         (file "~/.emacs.d/org-capture-templates/quoting-note-journal-template.org")
         :empty-lines 1)
        ("nt" "Linked/Quoted Notes" entry
         (file+datetree ,(format-time-string "~/org/notes/%Y.org"))
         (file "~/.emacs.d/org-capture-templates/technical-journal-template.org")
         :empty-lines 1)
        ("nd" "Note on Date" entry
         (file+datetree+prompt ,(format-time-string "~/org/notes/%Y.org"))
         (file "~/.emacs.d/org-capture-templates/notes-journal-template.org")
         :empty-lines 1)
        ("nc" "Clocking Notes")
        ("ncn" "General Notes" entry
         (file+datetree ,(format-time-string "~/org/notes/%Y.org"))
         (file "~/.emacs.d/org-capture-templates/notes-journal-template-clocking.org")
         :empty-lines 1)
        ("ncl" "Linked Note" entry
         (file+datetree ,(format-time-string "~/org/notes/%Y.org"))
         (file "~/.emacs.d/org-capture-templates/linked-note-journal-template-clocking.org")
         :empty-lines 1)
        ("ncq" "Quoting Note" entry
         (file+datetree ,(format-time-string "~/org/notes/%Y.org"))
         (file "~/.emacs.d/org-capture-templates/quoting-note-journal-template-clocking.org")
         :empty-lines 1)
        ("nct" "Linked/Quoted Notes" entry
         (file+datetree ,(format-time-string "~/org/notes/%Y.org"))
         (file "~/.emacs.d/org-capture-templates/technical-journal-template-clocking.org")
         :empty-lines 1)
        ("A" "Assignment" entry
         (file "~/org/school.org")
         (file "~/.emacs.d/org-capture-templates/assignment-template.org")
         :empty-lines 1)
        ("j" "Journal Entry" entry
         (file+datetree ,(format-time-string "~/org/journal/%Y.org.gpg"))
         (file "~/.emacs.d/org-capture-templates/journal-template.org")
         :empty-lines 1)
        ("c" "calfw2org" entry
         (file+olp "~/org/agenda.org" "Main Agenda, including diary" "Current")
         (file "~/.emacs.d/org-capture-templates/clfw-template.org")
         :empty-lines 1)
        ("b" "Bookmark" item
         (file+olp "~/org/bookmarks.org" "Unsorted Bookmarks")
         "%a"
         :immediate-finish t)
        ("m" "Mail Message Follow-up" entry
         (file+olp "~/org/agenda.org" "Main Agenda, including diary" "Mail Message Follow-up")
         (file "~/.emacs.d/org-capture-templates/mail-followup-template.org")
         :immediate-finish t :empty-lines 1)))

in a minimal init file and successfully called "M-x org-capture RET b".
Is that you recipe or am I doing something wrong?

Regards,

  reply	other threads:[~2017-06-14 16:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-11  2:41 Org Protocol error, does not recognize template Samuel W. Flint
2017-06-11  3:08 ` Samuel W. Flint
2017-06-11  7:15   ` Nicolas Goaziou
2017-06-11 16:43     ` Samuel W. Flint
2017-06-14 13:58       ` Nicolas Goaziou
2017-06-14 16:02         ` Samuel W. Flint
2017-06-14 16:31           ` Nicolas Goaziou [this message]
2017-06-14 17:05   ` Nick Dokos

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=87lgouil9t.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=swflint@flintfam.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).