[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Improving Emacs' iCalendar support
From: |
Ihor Radchenko |
Subject: |
Re: Improving Emacs' iCalendar support |
Date: |
Tue, 22 Oct 2024 18:40:14 +0000 |
Richard Lawrence <rwl@recursewithless.net> writes:
>> So I'd suggest looking at the existing Emacs/Org applications that use
>> iCal, and designing your API so that such applications would find it
>> easy to use (not that it should directly imitate what already exists,
>> unless such APIs are already ideal).
Some kind of icalendar parser could be useful.
In Org mode, we currently do icalendar export by hand-writing iCalendar
entries as strings and need to be careful about things like line endings
and special symbols.
What could be done instead is some kind of Elisp API similar to
`xml-parse-region' and `xml-print', so that things like escaping
symbols, exact literals, newlines, etc are handled behind the scenes, and
we could instead just define an AST and "print" it into a valid
iCalendar file.
So, my suggestion would be something akin xml.el and maybe (optionally)
https://github.com/ndwarshuis/org-ml - to manipulate the AST.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
- Re: Improving Emacs' iCalendar support, (continued)
Re: Improving Emacs' iCalendar support, Sebastián Monía, 2024/10/18
Re: Improving Emacs' iCalendar support, Adam Porter, 2024/10/19
- Re: Improving Emacs' iCalendar support, Richard Lawrence, 2024/10/19
- Re: Improving Emacs' iCalendar support, Adam Porter, 2024/10/19
- Re: Improving Emacs' iCalendar support,
Ihor Radchenko <=
- Re: Improving Emacs' iCalendar support, Björn Bidar, 2024/10/23
- Re: Improving Emacs' iCalendar support, Ihor Radchenko, 2024/10/23
- Re: Improving Emacs' iCalendar support, Richard Lawrence, 2024/10/23
- Re: Improving Emacs' iCalendar support, Björn Bidar, 2024/10/23
Re: Improving Emacs' iCalendar support, Richard Lawrence, 2024/10/23
Re: Improving Emacs' iCalendar support, Ferdinand Pieper, 2024/10/23
Re: Improving Emacs' iCalendar support, Richard Lawrence, 2024/10/24
Re: Improving Emacs' iCalendar support, Ihor Radchenko, 2024/10/24
Re: Improving Emacs' iCalendar support, Richard Lawrence, 2024/10/25
Re: Improving Emacs' iCalendar support, Ihor Radchenko, 2024/10/25