From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: org-capture vs. org-agenda-capture Date: Thu, 13 Dec 2012 00:24:10 +0100 Message-ID: <871ueu7t2d.fsf@bzg.ath.cx> References: <87d2yfnxjs.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tivew-0000wk-8n for emacs-orgmode@gnu.org; Wed, 12 Dec 2012 18:24:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tiveu-0004Ax-Ul for emacs-orgmode@gnu.org; Wed, 12 Dec 2012 18:24:14 -0500 Received: from mail-wg0-f51.google.com ([74.125.82.51]:45986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tiveu-0004As-P0 for emacs-orgmode@gnu.org; Wed, 12 Dec 2012 18:24:12 -0500 Received: by mail-wg0-f51.google.com with SMTP id gg4so512442wgb.30 for ; Wed, 12 Dec 2012 15:24:12 -0800 (PST) In-Reply-To: (Rene's message of "Wed, 12 Dec 2012 21:24:36 +0000 (UTC)") 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: Rene Cc: emacs-orgmode@gnu.org Dear Rene, Rene writes: > As a matter of fact, when called from the agenda `%U' doesn't expand as the > current timestamp but rather provides the date of the line your point is on. Depends. From the agenda, you can use either org-capture directly, or org-agenda-capture. org-capture will convert %U using current time, not the time of the agenda line -- unless `org-capture-use-agenda-date' is t. > Wouldn't it be more convenient to get the current timestamp anyway? If you want the date the cursor is on, I think 00:00 as a default time makes sense, mixing the current time and the date line would be confusing IMHO. > Suppose you would like to create a new appointment then > 1. you view your agenda to see whether you're free on a particular date > 2. you place the cursor on that date line > 3. you invoke org-agenda-capture (hit `k' key) from there > > then a template such as this one > > ("a" "Appointment" entry (file+headline "~/gtd.org" "Inbox") > "* APPT %?\n %^T\n Added: %U") > > would expand as > > * APPT Dentist > <2012-12-25 Tue 18:00-19:00> > Added: [2012-12-12 Wed 22:13] > > which makes sense; instead of > > * APPT Dentist > <2012-12-25 Tue 18:00-19:00> > Added: [2012-12-25 Wed 00:00] > > as it is today. I guess M-x org-capture is enough here. Best, -- Bastien