[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#74994: Upstreaming org-element-ast (was: Improving Emacs' iCalendar
From: |
Ihor Radchenko |
Subject: |
bug#74994: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support) |
Date: |
Mon, 30 Dec 2024 17:18:01 +0000 |
Richard Lawrence <rwl@recursewithless.net> writes:
> Ah, looking over this again, there was one thing that I felt didn't fit
> very well with org-element-ast: in iCalendar, "properties" can have both
> a "value" and a list of "parameters". These are different types of
> objects and it's most natural and useful not to lump them together, but
> in the Org element AST they would probably both just be "contents" of a
> property node (i.e., child nodes). Thus, in my draft icalendar-ast.el,
> instead of using
>
> (TYPE PROPERTIES CONTENTS)
>
> as the basic representation for a node, I used
>
> (TYPE META VALUE CHILDREN).
>
> The org-element-ast representation is obviously capable of making the
> distinction between values and parameters in some other way; but it's
> pretty much the only example I can think of where I felt the
> org-element-ast representation might not be the best for the needs of
> iCalendar.
Have you looked into secondary nodes?
--
Ihor Radchenko // yantar92,
Org mode maintainer,
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>