From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damon Haley Subject: Invalid capture template with pull of Org 7.8.03? Date: Thu, 12 Jan 2012 16:28:51 -0700 Message-ID: <4F0F6CB3.6050908@vinylisland.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlU4s-00006M-OB for emacs-orgmode@gnu.org; Thu, 12 Jan 2012 18:29:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlU4k-0008BR-Lx for emacs-orgmode@gnu.org; Thu, 12 Jan 2012 18:29:02 -0500 Received: from caiajhbdcbbj.dreamhost.com ([208.97.132.119]:46765 helo=homiemail-a34.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlU4k-0008Ad-8G for emacs-orgmode@gnu.org; Thu, 12 Jan 2012 18:28:54 -0500 Received: from homiemail-a34.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a34.g.dreamhost.com (Postfix) with ESMTP id 1BA6810058 for ; Thu, 12 Jan 2012 15:28:52 -0800 (PST) Received: from [128.138.175.47] (innodev.colorado.edu [128.138.175.47]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: news@vinylisland.org) by homiemail-a34.g.dreamhost.com (Postfix) with ESMTPSA id F200210056 for ; Thu, 12 Jan 2012 15:28:51 -0800 (PST) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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))