emacs-devel
[Top][All Lists]
Advanced

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

Re: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support


From: Richard Lawrence
Subject: Re: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support)
Date: Fri, 10 Jan 2025 10:42:58 +0100

Ihor Radchenko <yantar92@posteo.net> writes:

> I think I can just add a special case to `org-element-create':
> when CHILDREN is (nil), ignore it.
>
> Does it make sense?

That would be enough for my purposes. I don't know if it's enough for
Org's (and worry that the change might introduce hard-to-find bugs). I
wonder therefore if it might be better to create a wrapper with a
different argument list like

(defun org-element-create* (type &optional props children)
  (if children 
      (apply #'org-element-create type props children)
     (org-element-create type props))

But either would be fine with me.

Best,
Richard



reply via email to

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