From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Hetzner Subject: org-capture-templates file+datetree+prompt question Date: Mon, 05 Dec 2011 22:04:33 -0800 Message-ID: <87d3c2nslq.wl%egh@e6h.org> Reply-To: Erik Hetzner Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Mon_Dec__5_22:04:33_2011-1" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXo8u-0000ag-Lh for emacs-orgmode@gnu.org; Tue, 06 Dec 2011 01:04:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RXo8t-0005vU-17 for emacs-orgmode@gnu.org; Tue, 06 Dec 2011 01:04:40 -0500 Received: from mail-yx0-f169.google.com ([209.85.213.169]:50416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXo8s-0005vM-Uv for emacs-orgmode@gnu.org; Tue, 06 Dec 2011 01:04:38 -0500 Received: by yenq10 with SMTP id q10so6182305yen.0 for ; Mon, 05 Dec 2011 22:04:38 -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 --Multipart_Mon_Dec__5_22:04:33_2011-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all, I would like to use a capture template to capture calendar entries & file them to a date tree organized calendar.org file. Specifically, what I want to happen is this: the template prompts me for a date, then prompts me for headline. The date should be used for the datetree & used as a datestamp in the headline. I have tried the following template: (setq org-capture-templates '(("c" "Calendar" entry (file+datetree+prompt "~/s/notes/calendar.o= rg") "* %^{What?}\n%t\n%?"))) What happens with this is that I get prompted for a date, which is used to file the entry in the datetree, but the date in the headline is always today=E2=80=99s date. If I use `k c` in the agenda (org-agenda-action) this works as expected, with no prompting for a date, the entry filed properly in the datetree, and the date in the headline set properly. Any thoughts on how to fix this? best, Erik --Multipart_Mon_Dec__5_22:04:33_2011-1 Content-Type: text/plain; charset=US-ASCII Sent from my free software system . --Multipart_Mon_Dec__5_22:04:33_2011-1--