emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Improving Emacs' iCalendar support


From: Richard Lawrence
Subject: Re: Improving Emacs' iCalendar support
Date: Fri, 25 Oct 2024 14:53:19 +0200

Hi Ihor,

Ihor Radchenko <yantar92@posteo.net> writes:

> Richard Lawrence <rwl@recursewithless.net> writes:
>
>>> While I started extending the gnus-icalendar-event EIEIO class to
>>> support property parameters, it ended up being very cumbersome to
>>> create new event objects with all parameters correctly set.
>
> As an alternative option, you may consider using org-element-ast API -
> it is a generic data structure and API that Org mode uses to handle
> parsed AST. It is servility optimized for performance and does not
> really depend on other parts of Org mode.

Thanks for pointing me to this! I took a look at the file commentary,
and I've played around with org-element before. I do like org-element's
plist-based format...it makes things simple and readable as an outside
tinkerer.

Can you tell me a bit more about the performance benefits? Do these
mostly just stem from the use of an array for :standard-properties?
(You get this for free with cl-structs, too.) Or is it more about when
and how parsing happens? (This is something I feel like I've never
grasped in org-element...in the past I've been confused because the
properties I'd see when calling e.g. org-element-at-point would be
different than the ones available in some other context.)

Thanks!

Best,
Richard



reply via email to

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