* Time intervals with org-read-date
@ 2018-09-07 11:26 adolfo villafiorita
0 siblings, 0 replies; only message in thread
From: adolfo villafiorita @ 2018-09-07 11:26 UTC (permalink / raw)
To: emacs-orgmode
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-07 11:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-07 11:26 Time intervals with org-read-date adolfo villafiorita
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).