emacs-devel
[Top][All Lists]
Advanced

[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>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]