From: adolfo villafiorita <adolfo.villafiorita@fbk.eu>
To: emacs-orgmode@gnu.org
Subject: Time intervals with org-read-date
Date: Fri, 07 Sep 2018 13:26:59 +0200 [thread overview]
Message-ID: <87va7him4c.fsf@fbk.eu> (raw)
Hello,
I am trying to write a template to enter an entry with start and
end time, that is, something like <2018-10-09 11:00-12:00>.
The capture template I have at the moment is:
("a" "Agenda Entry" entry (file+headline ,(concat
(file-name-as-directory org-directory) "agenda.org") "Agenda")
"**** %? %^G\n %^{LOCATION}p %^{ATTENDEES}p\n
<%(org-read-date t)>")
However, I am having problems with org-read-date.
More specifically, when using the template:
- I can correctly enter an entry with date and time. That is, if
I type something like: "2018-09-10 11:00" in the modeline, the
timestamp generated is <2018-09-10 11:00> (as expected)
- I cannot create an entry with a time interval: the timestamp
returned by org-read-date has the current time instead of the
interval entered in the modeline. That is, if I type in the
modeline something like "2018-09-10 11:00-12:00", the timestamp
generated is <2018-09-10 14:14>, assuming 14:14 is the current
time.
This seems odd, since the date printed right of => in the modeline
seems to recognize the interval correctly.
Is this the intended behavior of org-read-date?
... and, more to the point, any suggestion on how to fix the
template?
thanks in advance!
-adolfo
--
--
Le informazioni contenute nella presente comunicazione sono di natura
privata e come tali sono da considerarsi riservate ed indirizzate
esclusivamente ai destinatari indicati e per le finalità strettamente
legate al relativo contenuto. Se avete ricevuto questo messaggio per
errore, vi preghiamo di eliminarlo e di inviare una comunicazione
all'indirizzo e-mail del mittente.
--
The information transmitted is
intended only for the person or entity to which it is addressed and may
contain confidential and/or privileged material. If you received this in
error, please contact the sender and delete the material.
reply other threads:[~2018-09-07 11:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87va7him4c.fsf@fbk.eu \
--to=adolfo.villafiorita@fbk.eu \
--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).