emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Invalid capture template with pull of Org 7.8.03?


From: Damon Haley
Subject: [O] Invalid capture template with pull of Org 7.8.03?
Date: Thu, 12 Jan 2012 16:28:51 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111120 Icedove/3.1.16

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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]