From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bart Bunting Subject: Re: Trouble with capture template and prompt Date: Wed, 14 Sep 2016 06:00:41 +1000 Message-ID: References: <87lgywwvvc.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjtuG-0004Dq-Vx for emacs-orgmode@gnu.org; Tue, 13 Sep 2016 16:02:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjtuC-00049A-Or for emacs-orgmode@gnu.org; Tue, 13 Sep 2016 16:02:11 -0400 Received: from mail-wm0-f51.google.com ([74.125.82.51]:35886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjtuC-00042i-Hh for emacs-orgmode@gnu.org; Tue, 13 Sep 2016 16:02:08 -0400 Received: by mail-wm0-f51.google.com with SMTP id b187so13282820wme.1 for ; Tue, 13 Sep 2016 13:01:46 -0700 (PDT) In-Reply-To: <87lgywwvvc.fsf@alphapapa.net> 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: Adam Porter , emacs-orgmode@gnu.org Adam, Here it is from .customize. Several of the entries I do not use but thought I should include the entire variable. '(org-capture-templates (quote (("t" "todo" entry (file "~/.org/refile.org") "* TODO %^{Todo} %u %a %?" :clock-in t :clock-resume t) ("r" "respond" entry (file "~/.org/refile.org") "* NEXT Respond to %:from on %:subject SCHEDULED: %t %U %a " :immediate-finish t :clock-in t :clock-resume t) ("n" "note" entry (file "~/.org/refile.org") "* %? :NOTE: %U %a " :clock-in t :clock-resume t) ("j" "Journal" entry (file+datetree "~/.org/diary.org") "* %? %U " :clock-in t :clock-resume t) ("w" "org-protocol" entry (file "~/.org/refile.org") "* TODO Review %c %U " :immediate-finish t) ("m" "Meeting" entry (file "~/.org/refile.org") "* MEETING with %? :MEETING: %U" :clock-in t :clock-resume t) ("p" "password" entry (file "~/filing/p/passwords.gpg") "* %^{Title} %^{USERNAME}p %^{PASSWORD}p") ("P" "Phone call" entry (file "~/.org/refile.org") "* PHONE %? :PHONE: %U" :clock-in t :clock-resume t) ("h" "Habit" entry (file "~/.org/refile.org") "* NEXT %? %U %a SCHEDULED: %(format-time-string \"<%Y-%m-%d %a .+1d/3d>\") :PROPERTIES: :STYLE: habit :REPEAT_TO_STATE: NEXT :END: ")))) Kind regards Adam Porter writes: > Bart Bunting writes: > >> The error that is shown in the messages buffer is: >> >> Template key: >> Capture abort: (error Key sequence C-c ! starts with non-prefix key C-c) > > I think this means that you have tried to specify the capture template > key incorrectly. It would be helpful if you could show us the elisp > code that defines the template rather than the customize-option screen. > :) e.g.: > > #+BEGIN_SRC elisp > '(("a" "Appointment" entry > (file+datetree+prompt > (concat org-directory "/calendar.org") > "Calendar") > "* %^{Description} %T %^G\n\n%U %?" :clock-in t :clock-resume t) > ("t" "Task" entry > (file "") > "* TODO %^{Description} %^G\n\n%U %?" :clock-in t :clock-resume t)) > #+END_SRC > > Bart -- Bart Bunting