emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ken Mankoff <mankoff@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Capture w/ timestamp does not include current timestamp
Date: Wed, 23 Aug 2017 08:16:27 +0200	[thread overview]
Message-ID: <m27exu6c78.fsf@gmail.com> (raw)

Hi List,

I'm not sure if this is a bug or not - it seems to be, but it has been discussed on the list[1] (and elswhere[2]) and not fixed, and I wonder if that is because nobody explicitly called it out as a bug. At a minimum, I think it is a documentation bug.

A capture template with %^T or %^U will prompt for date and time, but if I hit ENTER without manually typing a time, the present time (shown in the prompt) is dropped, and only a date is used in the capture.

This is different behavior than, for example =org-time-stamp= or =org-time-stamp-inactive= run with a prefix argument (e.g. "C-u C-c C-.").

Without a time prompt (i.e. %^t or %^u), I can still manually enter a time and it works. So the only benefit of %^T or %^U is that the current time is displayed in the prompt, but I still have to manually type it out? This seems inefficient, hence I think this is a bug.

If the behavior is correct, the following doc strings should probably be updated:

%t          Time stamp, date only.  The time stamp is the current time,
            except when called from agendas with ‘M-x org-agenda-capture’ or
            with ‘org-capture-use-agenda-date’ set.
%T          Time stamp as above, with date and time.
%u, %U      Like the above, but inactive time stamps.

Regards,

  Ken Mankoff

Org mode version 9.0.9 (9.0.9-88-g251f88-elpaplus @ /Users/mankoff/.emacs.d/elpa/org-plus-contrib-20170821/)

[1] https://lists.gnu.org/archive/html/emacs-orgmode/2016-02/msg00323.html
[2] https://emacs.stackexchange.com/questions/24368/

             reply	other threads:[~2017-08-23  6:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-23  6:16 Ken Mankoff [this message]
2017-08-23  8:31 ` Capture w/ timestamp does not include current timestamp Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m27exu6c78.fsf@gmail.com \
    --to=mankoff@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).