From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Micha=C3=ABl_Cadilhac?= Subject: Re: Time stamped TODOs with current-time from everywhere. Date: Sat, 5 Aug 2017 11:59:47 +0200 Message-ID: References: <87r2wqrboo.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddvsp-00034N-EA for emacs-orgmode@gnu.org; Sat, 05 Aug 2017 06:00:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddvsm-00045X-C9 for emacs-orgmode@gnu.org; Sat, 05 Aug 2017 06:00:35 -0400 Received: from cadilhac.name ([163.172.56.42]:49940) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ddvsm-00044m-0m for emacs-orgmode@gnu.org; Sat, 05 Aug 2017 06:00:32 -0400 Received: from mail-qk0-f174.google.com (mail-qk0-f174.google.com [209.85.220.174]) by cadilhac.name (OpenSMTPD) with ESMTPSA id 3552f94b (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO) for ; Sat, 5 Aug 2017 10:01:49 +0000 (UTC) Received: by mail-qk0-f174.google.com with SMTP id u139so20410187qka.1 for ; Sat, 05 Aug 2017 03:00:28 -0700 (PDT) In-Reply-To: <87r2wqrboo.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 Cc: emacs-orgmode@gnu.org On 5 August 2017 at 04:27, Adam Porter wrote: > Micha=C3=ABl Cadilhac writes: > >> However, suppose I'm in Calfw; I jump to some date, hit SPACE and I'm >> now in Org-Agenda mode, ready to hit k to capture (because Calfw-Org >> does not offer this directly). Now I expect %U to still be the >> current time stamp, and %^t to be prefilled with the date of the >> Agenda. It so happens that *both* time stamps are the one of the >> Agenda. Is this tweakable so that %U is always (current-time)? > > I'm not sure if that's a bug, since it seems like %^t should always > prompt, or if it's intended that the agenda date fulfill the prompt. > But either way, you should be able to use a %(sexp) form in the capture > template to insert the current date. Thanks for your expertise Adam. It seems indeed that org-agenda-capture (or equivalently, setting org-capture-use-agenda-date) affects the default date at all stages, i.e., for %u and for the default value of %^t. This is done through setting org-overriding-default-time. I don't think there's any reason to change this behavior, but it may be worth adding that info in org-capture-template's docstring. At the moment, it only says "time stamp". Cheers; M.