From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Bug: org-capture-templates with %^t Date: Tue, 03 Oct 2017 18:21:16 -0500 Message-ID: <87h8vfj0bo.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzWV8-0003aD-4i for emacs-orgmode@gnu.org; Tue, 03 Oct 2017 19:21:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzWV5-0005NU-0a for emacs-orgmode@gnu.org; Tue, 03 Oct 2017 19:21:22 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:34917) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dzWV4-0005Ma-Jh for emacs-orgmode@gnu.org; Tue, 03 Oct 2017 19:21:18 -0400 Received: from archpad (c-24-14-63-242.hsd1.il.comcast.net [24.14.63.242]) by mail.messagingengine.com (Postfix) with ESMTPA id CF62A7E101 for ; Tue, 3 Oct 2017 19:21:16 -0400 (EDT) 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: Org Mode After commit 51b431d01365211d4c40b07729d5d11d82b9dfe2, org-capture-templates containing %^t do not work as expected. The relevant capture template snippet looks like this: (setq org-capture-templates '(("a" "Appointment" entry (file "~/inbox.org") "* %^{Appt}\n %^t%?\n %U\n %a\n\n %i"))) With this capture template, I am prompted to enter a time via org-read-date. The expected behavior is as follows: - if I enter a date and time of day, the resulting timestamp should contain the time of day: - i.e., entering "Thu 8am" should yield "<2017-10-05 Thu 08:00>" - if I enter only a date, the resulting timestamp should contain a date with no time of day - if I enter nothing at the prompt, the resulting timestamp should contain today's date with no time of day What happens now: - when I enter a date with a time of day, the timestamp is truncated and contains only a date - I.e., entering "Thu 8am" now yields "<2017-10-05 Thu>" This, I think, is counter to the intent of the difference between %^t and %^T. The lowercase and uppercase (time of day vs. no time of day) should apply only to the default entry when nothing is entered. But when the user enters information at the prompt, the behavior should be the same as that of org-time-stamp, allowing a flexible decision on the fly as to whether to enter a time of day. Best, Matt