emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Invalid capture template with pull of Org 7.8.03?
@ 2012-01-12 23:28 Damon Haley
  2012-01-12 23:44 ` Nick Dokos
  0 siblings, 1 reply; 3+ messages in thread
From: Damon Haley @ 2012-01-12 23:28 UTC (permalink / raw)
  To: emacs-orgmode

Hi I was wondering if someone could point me in the right direction
because one of my Org capture templates, that I use to feed questions to
myself (for later use with org-drill) just broke with the most recent
bzr pull of emacs.

Now, when I try to use the capture template, I only get this header in
my target org file.

** Invalid capture template

I'm on the 24.0.92.1 version of emacs which ships with Org 7.8.03.

Here's the template, which I stole from:
http://orgmode.org/worg/org-contrib/org-drill.html

(add-to-list 'org-capture-templates
              '
              ("W"
               "Capture web snippet"
               entry
               (file+headline "~/git/org/learn-emacs.org" "Emacs mastery")
               ,(concat "* Fact: '%:description'        :"
                        (format "%s" org-drill-question-tag)
                        ":\n:PROPERTIES:\n:DATE_ADDED: %u\n:SOURCE_URL: 
%c\n:END:\n\n%i\n%?\n")
               :empty-lines 1
               :immediate-finish t))

Is there any obvious reason this template would break?

I know I could read the capture documentation further but I don't have a
few hours to spend on this right now (plus I'm extremely beginner with
lisp). But I'm pretty sure it just broke with a recent pull of emacs
without me changing any other settings.

Thanks for any help,

Damon

p.s. Here's the complete config that I used to try to debug the problem.

(require 'org-install)
(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . 
org-mode))
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
(global-set-key (kbd "C-c r") 'org-capture)

;; Capture templates for: TODO tasks, Notes, appointments, phone calls, 
and org-protocol
   (setq org-capture-templates
       (quote (("t" "todo" entry (file "~/git/org/refile.org")
                "* TODO %?\n%U\n%a\n  %i" :clock-in t :clock-resume t)
               ("n" "note" entry (file "~/git/org/refile.org")
                "* %? :NOTE:\n%U\n%a\n  %i" :clock-in t :clock-resume t)
               ("j" "Journal" entry (file+datetree "~/git/org/diary.org")
                "* %?\n%U\n  %i" :clock-in t :clock-resume t)
               ("w" "org-protocol" entry (file "~/git/org/refile.org")
                "* TODO Review %c\n%U\n  %i" :immediate-finish t)
               ("p" "Phone call" entry (file "~/git/org/refile.org")
                "* PHONE %? :PHONE:\n%U" :clock-in t :clock-resume t)
               ("h" "Habit" entry (file "~/git/org/refile.org")
                "* NEXT %?\n%U\n%a\nSCHEDULED: %t 
.+1d/3d\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n  
%i"))))

(add-to-list 'org-capture-templates
            '
            ("W"
             "Capture web snippet"
             entry
             (file+headline "~/git/org/learn-emacs.org" "Emacs mastery")
             ,(concat "* Fact: '%:description'        :"
                      (format "%s" org-drill-question-tag)
                      ":\n:PROPERTIES:\n:DATE_ADDED: %u\n:SOURCE_URL: 
%c\n:END:\n\n%i\n%?\n")
             :empty-lines 1
             :immediate-finish t))

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-13  0:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-12 23:28 Invalid capture template with pull of Org 7.8.03? Damon Haley
2012-01-12 23:44 ` Nick Dokos
2012-01-13  0:07   ` Damon Haley

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).