From: "Stephen J. Eglen" <sje30@cam.ac.uk>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Cc: Jan Tatarik <jan.tatarik@gmail.com>
Subject: help with gnus-icalendar.el and orgmode agenda
Date: Wed, 07 Feb 2024 20:41:04 +0000 [thread overview]
Message-ID: <m2ttmkxai0.fsf@cam.ac.uk> (raw)
hi,
I have the following snippet set up so that mu4e will parse icalendar
attachments and add them to an org file ... this seems to be the
standard prescription:
(when (fboundp 'gnus-icalendar-org-setup)
(setq gnus-icalendar-org-capture-file "~/todo.org")
(setq gnus-icalendar-org-capture-headline '("Calendar"))
(gnus-icalendar-org-setup))
gnus-icalendar.el is part of Emacs, authored by Jan Tatarik (cc'ed).
When I use this package on icalendar attachments, it creates entries
that look like this:
** [#B] subject of email
:PROPERTIES:
:ICAL_EVENT: t
...
:END:
<2024-02-22 18:30-20:00>
Note that the timestamp DOES NOT include a day of the week. With the
default settings of org-time-stamp-formats, i.e.
("%Y-%m-%d %a" . "%Y-%m-%d %a %H:%M")
this means that the agenda does not show this entry -- which defeats the
purpose of me saving the icalendar entry! If I manually add the dayname
then the agenda item appears.
Looking inside gnus-icalendar.el, the relevant defun seems to be
gnus-icalendar-event--org-timestamp that creates the timestamp.
e.g. it includes this text to generate the timestamp:
(format "<%s %s-%s%s>" start-date start-time end-time repeat)
which does not include the dayname.
What is the best way to improve this code?
Best wishes,
Stephen
next reply other threads:[~2024-02-07 20:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-07 20:41 Stephen J. Eglen [this message]
2024-02-07 22:55 ` help with gnus-icalendar.el and orgmode agenda Ihor Radchenko
2024-02-07 23:20 ` Stephen J. Eglen
2024-02-08 15:03 ` Ihor Radchenko
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=m2ttmkxai0.fsf@cam.ac.uk \
--to=sje30@cam.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=jan.tatarik@gmail.com \
/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).