From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Org Protocol error, does not recognize template Date: Wed, 14 Jun 2017 18:31:10 +0200 Message-ID: <87lgouil9t.fsf@nicolasgoaziou.fr> References: <87k24j5jpp.fsf@curry.flintfam.org> <87a85f5igu.fsf@curry.flintfam.org> <87efurgfku.fsf@nicolasgoaziou.fr> <878tkybhl1.fsf@curry.flintfam.org> <8737b2k6wo.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLBCN-0004xx-5B for emacs-orgmode@gnu.org; Wed, 14 Jun 2017 12:31:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLBCL-000811-Sj for emacs-orgmode@gnu.org; Wed, 14 Jun 2017 12:31:15 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:53457) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dLBCL-00080T-MH for emacs-orgmode@gnu.org; Wed, 14 Jun 2017 12:31:13 -0400 In-Reply-To: (Samuel W. Flint's message of "Wed, 14 Jun 2017 11:02:35 -0500") 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: "Samuel W. Flint" Cc: Org-Mode "Samuel W. Flint" 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,